You are here

function permissions_by_term_menu in Permissions by Term 7

Implements hook_menu().

File

./permissions_by_term.module, line 44
Allows access to terms in a vocabulary to be limited by user or role.

Code

function permissions_by_term_menu() {
  $items = array();
  $items['permissions-by-term/autocomplete'] = array(
    'title' => '',
    'page callback' => 'permissions_by_term_autocomplete_multiple',
    'access arguments' => array(
      'access user profiles',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['permissions-by-term/autocomplete_terms'] = array(
    'title' => '',
    'page callback' => 'permissions_by_term_autocomplete_terms',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}