function admin_theme_list in Administration theme 5
Same name and namespace in other branches
- 6 admin_theme.module \admin_theme_list()
- 7 admin_theme.module \admin_theme_list()
Get all module defined options.
Return value
Array. All options.
3 calls to admin_theme_list()
- admin_theme_form_alter in ./
admin_theme.module - Implementation of hook_form_alter().
- admin_theme_menu in ./
admin_theme.module - Implementation of hook_init().
- admin_theme_uninstall in ./
admin_theme.install - Implementation of hook_uninstall().
File
- ./
admin_theme.module, line 35 - Enable the administration theme on more pages then possible with Drupal's default administration page.
Code
function admin_theme_list() {
$options = array();
foreach (module_list() as $module) {
$module_options = module_invoke($module, 'admin_theme_options', 'info');
if (count($module_options) > 0) {
foreach ($module_options as $option => $info) {
$info['option'] = $option;
$info['module'] = $module;
$options[] = $info;
}
}
}
return $options;
}