function realname_menu in Real Name 7
Same name and namespace in other branches
- 5 realname.module \realname_menu()
- 6 realname.module \realname_menu()
Implements hook_menu().
File
- ./
realname.module, line 43 - Provides token-based name displays for users.
Code
function realname_menu() {
$items['admin/config/people/realname'] = array(
'title' => 'Real name',
'description' => 'Use tokens to configure how user names are displayed.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'realname_settings_form',
),
'access arguments' => array(
'administer realname',
),
'file' => 'realname.admin.inc',
);
$items['realname/autocomplete'] = array(
'page callback' => 'realname_autocomplete',
'page arguments' => array(
'',
'',
2,
),
'access arguments' => array(
'access user profiles',
),
'type' => MENU_CALLBACK,
);
$items['realname/autocomplete/%/%/%'] = array(
'page callback' => 'realname_autocomplete',
'page arguments' => array(
2,
3,
4,
),
'access callback' => 'realname_autocomplete_access_callback',
'access arguments' => array(
2,
3,
4,
),
'type' => MENU_CALLBACK,
);
return $items;
}