You are here

function regcode_og_menu in Registration codes 7

Same name and namespace in other branches
  1. 6.2 regcode_og/regcode_og.module \regcode_og_menu()
  2. 6 regcode_og/regcode_og.module \regcode_og_menu()
  3. 7.2 regcode_og/regcode_og.module \regcode_og_menu()

Implements hook_menu().

File

regcode_og/regcode_og.module, line 27
Install, uninstall and scheme functions for the regcode_og module.

Code

function regcode_og_menu() {
  $items = array();
  $items['admin/config/people/regcode/og'] = array(
    'title' => 'Organic Groups',
    'description' => 'Automate organic group assignment',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_og_rules_page',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer registration codes',
    ),
    'weight' => 101,
  );
  $items['admin/config/people/regcode/og/rule/%'] = array(
    'title' => 'Edit rule',
    'description' => 'Modify settings for this og assignement rule',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_og_settings',
      6,
    ),
    'access arguments' => array(
      'administer registration codes',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/people/regcode/og/add-rule'] = array(
    'title' => 'Add rule',
    'description' => 'Create a new og assignement rule',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'regcode_og_create',
    ),
    'access arguments' => array(
      'administer registration codes',
    ),
    'type' => MENU_LOCAL_ACTION,
  );
  $items['admin/config/people/regcode/og/rule/%/delete'] = array(
    'title' => 'Delete rule',
    'description' => 'Delete settings for this og assignement rule',
    'page callback' => 'regcode_og_settings_delete_confirm',
    'page arguments' => array(
      6,
    ),
    'access arguments' => array(
      'administer registration codes',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}