Last Updated: February 25, 2016
·
496
· robinvdvleuten

Remove 'request new password' tab

Removing the 'request new password' tab in Drupal is very easy. Just implement the code below.

/**
 * Implements hook_menu_alter().
 */
function MODULE_OR_THEME_NAME_menu_alter(&$items)
{
    $items['user/password']['access callback'] = FALSE;
}