Skip to content
Snippets Groups Projects
Commit 77423ed4 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #471032 by chx: variable_del is broken!

parent 6c590f25
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -661,14 +661,12 @@ 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($conf[$name]);
unset($GLOBALS['conf'][$name]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment