function _admin_init_theme in Admin 6
Initialize the admin "theme".
1 call to _admin_init_theme()
- admin_init in ./
admin.module - Implementation of hook_init().
File
- ./
admin.module, line 607
Code
function _admin_init_theme() {
global $theme, $theme_key;
if (empty($theme)) {
_admin_theme_rebuild();
$theme = $theme_key = 'slate';
$path = drupal_get_path('module', 'admin') . '/theme';
$theme_info = new StdClass();
$theme_info->name = 'slate';
$theme_info->filename = "{$path}/slate.info";
$theme_info->engine = 'phptemplate';
$theme_info->owner = drupal_get_path('theme_engine', 'phptemplate') . '/phptemplate.engine';
$theme_info->stylesheets = array();
$theme_info->stylesheets['screen'][] = "{$path}/reset.css";
$theme_info->stylesheets['screen'][] = "{$path}/style.css";
$theme_info->scripts = array();
$theme_info->scripts[] = "{$path}/theme.js";
_init_theme($theme_info);
return TRUE;
}
}