You are here

function userreference_menu in Content Construction Kit (CCK) 5

Same name and namespace in other branches
  1. 6.3 modules/userreference/userreference.module \userreference_menu()
  2. 6 modules/userreference/userreference.module \userreference_menu()
  3. 6.2 modules/userreference/userreference.module \userreference_menu()

Implementation of hook_menu().

File

./userreference.module, line 11
Defines a field type for referencing a user from a node.

Code

function userreference_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'userreference/autocomplete',
      'title' => t('user reference autocomplete'),
      'callback' => 'userreference_autocomplete',
      'access' => user_access('access content'),
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}