name = 'admin'; $theme_info->filename = "{$path}/admin.theme.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; } } /** * Generate the 1st level of navigation links under 'admin'. */ function admin_navigation_primary() { $tree = admin_get_menu_tree(); return admin_menu_navigation_links($tree); } /** * Generate the 2nd level of navigation links under 'admin/*'. */ function admin_navigation_secondary() { $is_duplicated = theme('admin_block_content', NULL, TRUE); if (!$is_duplicated) { $tree = admin_get_menu_tree('page'); foreach ($tree as $item) { if (admin_in_active_trail($item['link']['href']) && !empty($item['below'])) { return admin_menu_navigation_links($item['below']); } } } return NULL; }