hook_admin_theme_info

  1. admin_theme
    1. 7
Versions
7 hook_admin_theme_info()

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

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.

Code

./admin_theme.api.php, line 28

<?php
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;
}
?>