function admin_theme_list in Administration theme 7
Same name and namespace in other branches
- 5 admin_theme.module \admin_theme_list()
- 6 admin_theme.module \admin_theme_list()
Get all module defined options.
Return value
array All options.
4 calls to admin_theme_list()
- admin_theme_custom_theme in ./
admin_theme.module - Implements hook_custom_theme().
- admin_theme_form_system_themes_admin_form_alter in ./
admin_theme.module - Implements hook_form_alter().
- admin_theme_form_system_themes_form_alter_submit in ./
admin_theme.module - Process system_themes_form additions submissions.
- admin_theme_uninstall in ./
admin_theme.install - Implementation of hook_uninstall().
File
- ./
admin_theme.module, line 42 - 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_info');
if ($module_options && count($module_options) > 0) {
foreach ($module_options as $option => $info) {
$info['option'] = $option;
$info['module'] = $module;
$options[] = $info;
}
}
}
return $options;
}