function nodereference_menu in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6.3 modules/nodereference/nodereference.module \nodereference_menu()
- 6 modules/nodereference/nodereference.module \nodereference_menu()
- 6.2 modules/nodereference/nodereference.module \nodereference_menu()
Implementation of hook_menu().
File
- ./
nodereference.module, line 12 - Defines a field type for referencing one node from another.
Code
function nodereference_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'nodereference/autocomplete',
'title' => t('node reference autocomplete'),
'callback' => 'nodereference_autocomplete',
'access' => user_access('access content'),
'type' => MENU_CALLBACK,
);
}
return $items;
}