You are here

function og_menu in Organic groups 7.2

Same name and namespace in other branches
  1. 5.8 og.module \og_menu()
  2. 5 og.module \og_menu()
  3. 5.2 og.module \og_menu()
  4. 5.3 og.module \og_menu()
  5. 5.7 og.module \og_menu()
  6. 6.2 og.module \og_menu()
  7. 6 og.module \og_menu()
  8. 7 og.module \og_menu()

Implements hook_menu().

File

./og.module, line 93
Enable users to create and manage groups with roles and permissions.

Code

function og_menu() {
  $items = array();

  // Add our own autocomplete callback to pass also the group and
  // vocabulary info.
  $items['og/autocomplete/single/%/%/%/%'] = array(
    'title' => 'Entity Reference Autocomplete',
    'page callback' => 'og_entityreference_autocomplete_callback',
    'page arguments' => array(
      2,
      3,
      4,
      5,
      6,
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['og/autocomplete/tags/%/%/%/%'] = array(
    'title' => 'Entity Reference Autocomplete',
    'page callback' => 'og_entityreference_autocomplete_callback',
    'page arguments' => array(
      2,
      3,
      4,
      5,
      6,
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}