function entityreference_menu in Entity reference 8
Same name and namespace in other branches
- 7 entityreference.module \entityreference_menu()
Implements hook_menu().
File
- ./
entityreference.module, line 39 - Provides a field that can reference other entities.
Code
function entityreference_menu() {
$items = array();
$items['entityreference/autocomplete/single/%/%/%'] = array(
'title' => 'Entity Reference Autocomplete',
'page callback' => 'entityreference_autocomplete_callback',
'page arguments' => array(
2,
3,
4,
5,
),
'access callback' => 'entityreference_autocomplete_access_callback',
'access arguments' => array(
2,
3,
4,
5,
),
'type' => MENU_CALLBACK,
);
$items['entityreference/autocomplete/tags/%/%/%'] = array(
'title' => 'Entity Reference Autocomplete',
'page callback' => 'entityreference_autocomplete_callback',
'page arguments' => array(
2,
3,
4,
5,
),
'access callback' => 'entityreference_autocomplete_access_callback',
'access arguments' => array(
2,
3,
4,
5,
),
'type' => MENU_CALLBACK,
);
return $items;
}