function variable_example_page_list in Variable 7.2
Same name and namespace in other branches
- 7 variable_example/variable_example.module \variable_example_page_list()
Variable example realm page.
Will switch to given realm and display variables.
1 call to variable_example_page_list()
- variable_example_page_realm in variable_example/
variable_example.module - Variable example realm page.
1 string reference to 'variable_example_page_list'
- variable_example_menu in variable_example/
variable_example.module - Implements hook_menu().
File
- variable_example/
variable_example.module, line 54
Code
function variable_example_page_list() {
variable_include();
$list = variable_list_group('site_information') + variable_list_group('variable_example');
foreach ($list as $name => $variable) {
$build[$name] = array(
'#type' => 'item',
'#title' => $variable['title'],
'#markup' => variable_format_value($variable),
);
}
return $build;
}