You are here

function variable_module_enable in Variable 7

Same name and namespace in other branches
  1. 7.2 variable.inc \variable_module_enable()

Disable variables for module

Store module variables so we can delete them if uninstalled

1 string reference to 'variable_module_enable'
variable_modules_enabled in ./variable.module
Implements hook_modules_enabled().

File

./variable.inc, line 259
Variable API module. Extended API.

Code

function variable_module_enable($module) {
  if ($variables = variable_list_module($module)) {
    $list = variable_get('variable_module_list', array());
    $list[$module] = variable_children($variables);
    variable_set('variable_module_list', $list);
  }
}