You are here

function notifications_tags_menu in Notifications 6.4

Same name and namespace in other branches
  1. 5 notifications_tags/notifications_tags.module \notifications_tags_menu()
  2. 6 notifications_tags/notifications_tags.module \notifications_tags_menu()
  3. 6.2 notifications_tags/notifications_tags.module \notifications_tags_menu()
  4. 6.3 notifications_tags/notifications_tags.module \notifications_tags_menu()
  5. 7 notifications_tags/notifications_tags.module \notifications_tags_menu()

Implementation of hook_menu_()

File

notifications_tags/notifications_tags.module, line 10
Subscriptions to taxonomy terms

Code

function notifications_tags_menu() {
  $items['notifications_tags/autocomplete'] = array(
    'title' => 'Autocomplete taxonomy',
    'page callback' => 'notifications_tags_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );

  // Hidden user account tab
  $items['user/%user/notifications/taxonomy'] = array(
    'type' => MENU_LOCAL_TASK,
    'access callback' => FALSE,
    'title' => t('Tags'),
    'page callback' => 'notifications_user_subscription_list_page',
    'page arguments' => array(
      'taxonomy',
      1,
    ),
    'weight' => 10,
  );
  return $items;
}