You are here

function spaces_og_menu in Spaces 6.2

Same name and namespace in other branches
  1. 5.2 spaces_og.module \spaces_og_menu()
  2. 6.3 spaces_og/spaces_og.module \spaces_og_menu()
  3. 6 spaces_og/spaces_og.module \spaces_og_menu()
  4. 7.3 spaces_og/spaces_og.module \spaces_og_menu()
  5. 7 spaces_og/spaces_og.module \spaces_og_menu()

Implementation of hook_menu().

File

spaces_og/spaces_og.module, line 549

Code

function spaces_og_menu() {
  $spaces_path = drupal_get_path('module', 'spaces');
  $items = array();
  $items['user/%user/groups'] = array(
    'title' => 'Groups',
    'title callback' => 'spaces_og_menu_title',
    'title arguments' => array(
      1,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'spaces_og_user_groups_form',
      1,
    ),
    'access callback' => 'user_edit_access',
    'access arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items["og/users/%node/ucreate"] = array(
    'title' => 'Add new account',
    'page callback' => 'spaces_og_ucreate',
    'page arguments' => array(
      2,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'spaces_admin_access',
    'access arguments' => array(
      'og',
    ),
    'weight' => 1,
  );
  $items["node/%node/spaces/features"] = array(
    'title' => 'Features',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'spaces_features_form',
    ),
    'access callback' => '_spaces_og_admin_access',
    'access arguments' => array(
      1,
      'og',
      'features',
    ),
    'file' => 'spaces_admin.inc',
    'file path' => $spaces_path,
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items["node/%node/spaces/features/%"] = array(
    'title' => 'Features',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'spaces_customize_form',
      NULL,
      4,
    ),
    'access callback' => '_spaces_og_admin_access',
    'access arguments' => array(
      1,
      'og',
      'features',
    ),
    'file' => 'spaces_admin.inc',
    'file path' => $spaces_path,
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  return $items;
}