function og_menu in Organic groups 7.2
Same name and namespace in other branches
- 5.8 og.module \og_menu()
- 5 og.module \og_menu()
- 5.2 og.module \og_menu()
- 5.3 og.module \og_menu()
- 5.7 og.module \og_menu()
- 6.2 og.module \og_menu()
- 6 og.module \og_menu()
- 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;
}