You are here

function variable_list_module in Variable 6

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

List variables for a module

1 call to variable_list_module()
variable_module_form in ./variable.module
Form for module variables

File

./variable.module, line 349
Variable API module

Code

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