function admin_preprocess_pre_page in Admin 6.2
Preprocessor that runs *before* template_preprocess_page().
1 string reference to 'admin_preprocess_pre_page'
- admin_theme_registry_alter in ./
admin.module - Implementation of hook_theme_registry_alter().
File
- ./
admin.module, line 434
Code
function admin_preprocess_pre_page(&$vars) {
admin_set_admin_blocks();
if (user_access('use admin toolbar') && ($trail = menu_get_active_trail())) {
do {
$last = array_pop($trail);
} while (count($trail) && !($last['type'] & MENU_VISIBLE_IN_TREE));
if ($last) {
drupal_add_js(array(
'activePath' => url($last['href']),
), 'setting');
}
}
}