function hook_admin_theme_info in Administration theme 7
Add more options to the administration theme settings page.
This hook allows modules to add more options to the administration theme settings page.
Return value
array A linear array of associative arrays. The keys of the linear array are the identifiers for the "options" that will be check for in hook_admin_theme_check. The associative arrays have keys:
- "title": The title to display on the checkbox on the administration theme settings page.
- "description": The description to display on the checkbox on the administration theme settings page.
1 function implements hook_admin_theme_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- admin_theme_admin_theme_info in ./
admin_theme.module - Implements hook_admin_theme_info().
1 invocation of hook_admin_theme_info()
- admin_theme_list in ./
admin_theme.module - Get all module defined options.
File
- ./
admin_theme.api.php, line 23 - Hooks provided by the Administration theme module.
Code
function hook_admin_theme_info() {
$options = array();
$options['batch'] = array(
'title' => t('Use administration theme for batch processing'),
'description' => t('Use the administration theme when executing batch operations.'),
);
if (module_exists('coder')) {
$options['coder'] = array(
'title' => t('Use administration theme for code reviews'),
'description' => t('Use the administration theme when viewing Coder code reviews.'),
);
}
if (module_exists('service_attachments')) {
$options['service_attachments'] = array(
'title' => t('Use administration theme for viewing the service attachments form on nodes.'),
'description' => t('Use the administration theme when viewing service attachments on nodes.'),
);
}
if (module_exists('webform')) {
$options['webform_results'] = array(
'title' => t('Use administration theme for viewing webform submissions.'),
'description' => t('Use the administration theme when viewing webform submissions.'),
);
}
if (module_exists('statistics')) {
$options['statistics'] = array(
'title' => t('Use administration theme for viewing pages of the statistics module.'),
'description' => t('Use the administration theme when viewing pages of the statistics module.'),
);
}
return $options;
}