function ajax_ui_var_del in Ajax 6
Removes variable on uninstall
Parameters
$vars Array: List of ajax variable names
Return value
Bool
File
- ajax_ui/
ajax_ui.module, line 277
Code
function ajax_ui_var_del($vars) {
$settings = variable_get('ajax', NULL);
if ($settings !== NULL) {
foreach ($settings['types']['default'] as $type_k => $type_v) {
foreach ($vars as $var) {
if (array_key_exists($var, $settings['types']['default'][$type_k])) {
unset($settings['types']['default'][$type_k][$var]);
}
}
}
variable_set('ajax', $settings);
return TRUE;
}
return FALSE;
}