You are here

function taxonomy_access_menu in Taxonomy Access Control 6

Same name and namespace in other branches
  1. 5.2 taxonomy_access.module \taxonomy_access_menu()
  2. 5 taxonomy_access.module \taxonomy_access_menu()
  3. 7 taxonomy_access.module \taxonomy_access_menu()

Implements hook_menu().

File

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

Code

function taxonomy_access_menu() {
  $items = array();
  $items['admin/user/taxonomy_access'] = array(
    'title' => 'Taxonomy access permissions',
    'description' => 'Taxonomy-based access control for content',
    'page callback' => 'taxonomy_access_admin',
    'access arguments' => array(
      'administer permissions',
    ),
  );
  $items['admin/user/taxonomy_access/delete'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_access_admin_delete_role',
    ),
    'access arguments' => array(
      'administer permissions',
    ),
  );
  $items['admin/user/taxonomy_access/edit'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_access_admin_form',
    ),
    'access arguments' => array(
      'administer permissions',
    ),
  );
  return $items;
}