function entity_autocomplete_menu in Entity Autocomplete 7
Implements hook_menu().
File
- ./
entity_autocomplete.module, line 23 - Provides functionalities for entity fields autocompletion.
Code
function entity_autocomplete_menu() {
$items = array();
$items['entity-autocomplete/%'] = array(
'title' => 'Entity Autocomplete',
'page callback' => 'entity_autocomplete',
'page arguments' => array(
2,
1,
NULL,
),
'access arguments' => array(
'use entity autocomplete',
),
'type' => MENU_CALLBACK,
);
$items['entity-autocomplete/bundle/%/%entity_autocomplete_bundles'] = array(
'title' => 'Entity Autocomplete',
'page callback' => 'entity_autocomplete',
'page arguments' => array(
4,
2,
3,
),
'access arguments' => array(
'use entity autocomplete',
),
'type' => MENU_CALLBACK,
);
return $items;
}