You are here

function og_massadd_menu in Organic Groups Mass Add 7

Same name and namespace in other branches
  1. 6 og_massadd.module \og_massadd_menu()

Implements hook_menu().

File

./og_massadd.module, line 24
The og_massadd module file

Code

function og_massadd_menu() {
  $items['admin/config/group/og_massadd'] = array(
    'title' => 'Og Mass Add',
    'description' => 'Configure og_massadd',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'og_massadd_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'og_massadd.admin.inc',
  );
  $items['group/%/%/admin/people/mass-add-user'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'og_massadd_massadd_form',
      1,
      2,
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
    'title' => 'Mass upload of user',
    'access callback' => 'og_ui_user_access_group',
    'access arguments' => array(
      'add user',
      1,
      2,
    ),
  );
  $items['group/%/%/admin/people/mass-add-user-filter'] = array(
    'page callback' => 'ogmass_add_user_filter',
    'page arguments' => array(
      1,
      2,
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
    'title' => 'Find and Add Members',
    'access callback' => 'og_ui_user_access_group',
    'access arguments' => array(
      'add user',
      1,
      2,
    ),
  );
  return $items;
}