You are here

function notify_menu in Notify 6

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

Implementation of hook_menu().

Return value

array

File

./notify.module, line 198
Notify module sends email digests of new content and comments.

Code

function notify_menu() {
  $items = array();
  $items['admin/settings/notify'] = array(
    'title' => 'Notification settings',
    'description' => 'Adjust settings for new content notifications sent by e-mail.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'notify_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer notify',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['user/%user/notify'] = array(
    'title' => 'Notification settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'notify_user_settings_form',
      1,
    ),
    'access callback' => 'notify_user_access',
    'access arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/user/user/notify'] = array(
    'title' => 'Notifications',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'notify_admin_users',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer notify',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}