You are here

function realname_menu_alter in Real Name 7

Same name and namespace in other branches
  1. 6 realname.module \realname_menu_alter()

Implements hook_menu_alter().

Replace user autocomplete with realname autocomplete.

File

./realname.module, line 75
Provides token-based name displays for users.

Code

function realname_menu_alter(&$items) {

  // Implement realname autocomplete.
  $items['user/autocomplete']['page callback'] = 'realname_autocomplete';
  $items['user/autocomplete']['page arguments'] = array(
    '',
    '',
    2,
  );
}