You are here

function content_access_init in Content Access 6

Implementation of hook_init().

Make node access settings page use admin theme if appropriate.

See also

system_init()

File

./content_access.module, line 49
Content access module file.

Code

function content_access_init() {

  // Use the administrative theme if the user is looking at a page at node/%/access
  if (variable_get('node_admin_theme', '0') && arg(0) == 'node' && arg(2) == 'access') {
    global $custom_theme;
    $custom_theme = variable_get('admin_theme', '0');
    drupal_add_css(drupal_get_path('module', 'system') . '/admin.css', 'module');
  }
}