You are here

function notifications_ui_menu in Notifications 5

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

Implementation of hook_menu

File

notifications_ui/notifications_ui.module, line 24
User Interface for subscriptions modules

Code

function notifications_ui_menu($may_cache) {
  $items = array();
  if (!$may_cache) {
    $items[] = array(
      'path' => 'admin/messaging/notifications/ui',
      'title' => t('User Interface'),
      'description' => t('Enables site settings for user subscriptions.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'notifications_ui_settings_form',
      'access' => user_access('administer site configuration'),
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}