You are here

function nodereference_menu in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 5 nodereference.module \nodereference_menu()
  2. 6 modules/nodereference/nodereference.module \nodereference_menu()
  3. 6.2 modules/nodereference/nodereference.module \nodereference_menu()

Implementation of hook_menu().

File

modules/nodereference/nodereference.module, line 16
Defines a field type for referencing one node from another.

Code

function nodereference_menu() {
  $items = array();
  $items['nodereference/autocomplete'] = array(
    'title' => 'Nodereference autocomplete',
    'page callback' => 'nodereference_autocomplete',
    'access callback' => 'nodereference_autocomplete_access',
    'access arguments' => array(
      2,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}