- Rollback of last patch.

merge-requests/26/head
Dries Buytaert 2009-05-23 19:21:30 +00:00
parent 77423ed423
commit 6ef4875e87
1 changed files with 3 additions and 1 deletions

View File

@ -661,12 +661,14 @@ function variable_set($name, $value) {
* The name of the variable to undefine.
*/
function variable_del($name) {
global $conf;
db_delete('variable')
->condition('name', $name)
->execute();
cache_clear_all('variables', 'cache');
unset($GLOBALS['conf'][$name]);
unset($conf[$name]);
}