You are here

public function Vars::removeDefaults in Variable API 6.2

Same name and namespace in other branches
  1. 6 vars.module \Vars::removeDefaults()
  2. 7.2 vars.classes.inc \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 Variable 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.module, line 358
Implement an API to handle persistent variables.

Class

Vars
@file Implement an API to handle persistent variables.

Code

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