You are here

function tac_fields_init in Taxonomy Access Control 6

Implements hook_init().

@todo Do we need taxonomy_access.admin.inc?

File

tac_fields/tac_fields.module, line 49
Allows administrators to control access to individual CCK fields based on the node's taxonomy categories.

Code

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

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