public function Vars::removeDefaults in Variable API 7
Same name and namespace in other branches
- 6.2 vars.module \Vars::removeDefaults()
- 6 vars.module \Vars::removeDefaults()
- 7.2 vars.classes.inc \Vars::removeDefaults()
Removes the default values contained in the table variable_default.
Remove the default values that are contained in the database table created by the Variables API module. The function should be called from the implementations of hook_uninstall(), or hook_update_N().
This function is deprecated. Variable API will automatically remove the default values from its database table, once the modules are uninstalled.
Parameters
$set: An optional array of variables to remove. If the parameter is not passed, the function will remove all the variables defined from the module. The variables are also removed from memory, and from the table of persistent variables used by Drupal core.
See also
File
- ./
vars.module, line 245 - Implement an API to handle persistent variables.
Class
- Vars
- @file Implement an API to handle persistent variables.
Code
public function removeDefaults(array $set = array()) {
}