You are here

function user_external_invite_menu in User External Invite 7

Same name and namespace in other branches
  1. 7.2 user_external_invite.module \user_external_invite_menu()
  2. 1.0.x user_external_invite.module \user_external_invite_menu()

Implements hook_menu().

File

./user_external_invite.module, line 46
Invites a user to site when connecting via external protocol e.g. LDAP.

Code

function user_external_invite_menu() {
  $items = array();
  $items['admin/config/people/invite'] = array(
    'title' => 'User external invite settings',
    'description' => 'Configure roles, email addresses, message templates, etc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'user_external_invite_settings_form',
    ),
    'access arguments' => array(
      'administer users',
    ),
    'file' => 'user_external_invite.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/people/invite'] = array(
    'title' => 'Invite users',
    'page callback' => 'user_external_invite_page',
    'page arguments' => array(
      'user_external_invite_form',
    ),
    'access arguments' => array(
      'invite new user',
    ),
    'file' => 'user_external_invite.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );
  $items['admin/people/invite/invite'] = array(
    'title' => 'Invite users',
    'page callback' => 'user_external_invite_page',
    'page arguments' => array(
      'user_external_invite_form',
    ),
    'access arguments' => array(
      'invite new user',
    ),
    'file' => 'user_external_invite.admin.inc',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/people/invite/operations'] = array(
    'title' => 'Manage invites',
    'page callback' => 'user_external_invite_operations_page',
    'page arguments' => array(
      'user_external_invite_pending_invites_form',
    ),
    'access arguments' => array(
      'invite new user',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['user-external/accept-invite'] = array(
    'title' => 'Accept an invite',
    'page callback' => 'user_external_invite_accept_invite',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}