You are here

function spaces_og_menu in Spaces 6.3

Same name and namespace in other branches
  1. 5.2 spaces_og.module \spaces_og_menu()
  2. 6 spaces_og/spaces_og.module \spaces_og_menu()
  3. 6.2 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 154

Code

function spaces_og_menu() {
  $items = array();
  $items['user/%user/edit/groups'] = array(
    'file' => 'spaces_og.pages.inc',
    'title' => 'Groups',
    '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,
  );
  if (module_exists('ucreate')) {
    $items["og/users/%node/ucreate"] = array(
      'file' => 'spaces_og.pages.inc',
      'type' => MENU_LOCAL_TASK,
      'title' => 'Add new account',
      'page callback' => 'spaces_og_ucreate',
      'page arguments' => array(
        2,
      ),
      'access callback' => 'spaces_access_admin',
      'access arguments' => array(),
      'weight' => 1,
    );
  }
  return $items;
}