function admin_theme_admin_theme_check in Administration theme 7
Implements hook_admin_theme_check().
File
- ./
admin_theme.module, line 247 - Enable the administration theme on more pages, then possible with Drupal's default administration page.
Code
function admin_theme_admin_theme_check($option = NULL) {
switch ($option) {
case 'img_assist':
return arg(0) == 'img_assist';
case 'coder':
return arg(0) == 'coder';
case 'devel':
return arg(0) == 'devel' || arg(0) == 'node' && arg(2) == 'devel';
case 'batch':
return arg(0) == 'batch';
case 'service_attachments':
return arg(0) == 'node' && arg(2) == 'service_attachments';
case 'webform_results':
return arg(0) == 'node' && arg(2) == 'webform-results';
case 'statistics':
return (arg(0) == 'node' || arg(0) == 'user') && arg(2) == 'track';
}
}