You are here

public function Vars::removeDefaults in Variable API 7.2

Same name and namespace in other branches
  1. 6.2 vars.module \Vars::removeDefaults()
  2. 6 vars.module \Vars::removeDefaults()
  3. 7 vars.module \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 method 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

Vars::saveDefaults()

File

./vars.classes.inc, line 360
Classes implemented by the Variable API module.

Class

Vars
@file Classes implemented by the Variable API module.

Code

public function removeDefaults(array $set = array()) {
}