You are here

function admin_theme in Admin 6

Same name and namespace in other branches
  1. 6.2 admin.module \admin_theme()
  2. 7.2 admin.module \admin_theme()

Implementation of hook_theme().

2 string references to 'admin_theme'
admin_init in ./admin.module
Implementation of hook_init().
admin_update_6002 in ./admin.install
Update 6002: Update theme namespace to 'slate' & clears out any customizations to key admin menu items.

File

./admin.module, line 244

Code

function admin_theme($cache, $type, $theme, $path) {
  $path = drupal_get_path('module', 'admin');
  $items['admin_menu_overview_form'] = array(
    'arguments' => array(
      'form' => array(),
    ),
  );
  $items['admin_toolbar'] = array(
    'arguments' => array(
      'tree' => array(),
    ),
    'template' => 'admin-toolbar',
    'path' => $path . '/toolbar',
    'file' => 'theme.inc',
  );
  $items['admin_links'] = array(
    'arguments' => array(
      'links' => array(),
    ),
    'template' => 'admin-links',
    'path' => $path . '/toolbar',
    'file' => 'theme.inc',
  );
  $items['admin_manage_options'] = array(
    'arguments' => array(
      'form' => array(),
    ),
    'path' => $path . '/theme',
    'file' => 'template.php',
  );
  return $items;
}