You are here

function variable_list_module in Variable 7

Same name and namespace in other branches
  1. 6 variable.module \variable_list_module()
  2. 7.2 variable.inc \variable_list_module()

List variables for a module

3 calls to variable_list_module()
variable_admin_page_module in variable_admin/variable_admin.inc
Variable overview, by group
variable_module_enable in ./variable.inc
Disable variables for module
variable_module_form in ./variable.module
Form for module variables

File

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

Code

function variable_list_module($module) {
  $list = array();
  foreach (variable_get_info() as $name => $variable) {
    if ($variable['module'] == $module) {
      $list[$name] = $variable;
    }
  }
  return $list;
}