You are here

function taxonomy_access_init in Taxonomy Access Control 6

Same name and namespace in other branches
  1. 7 taxonomy_access.module \taxonomy_access_init()

Implements hook_init().

File

./taxonomy_access.module, line 88
Allows administrators to specify how each category (in the taxonomy) can be used by various roles.

Code

function taxonomy_access_init() {
  if (arg(0) == 'admin') {

    // Only include administrative callbacks and css if we are viewing an admin page.
    $path = drupal_get_path('module', 'taxonomy_access');
    include_once $path . '/taxonomy_access.admin.inc';
    drupal_add_css($path . '/admin.css');
  }
}