Monday, January 4, 2016

Disable RSS feed link and request new password link in Drupal

Disable RSS feed link and request new password link in Drupal

<?php
/**
 * Implementation of hook_menu_alter().
 */
function mymodule_trigger_menu_alter(&$callback) {
  ### remove the rss.xml link
  unset($callback['rss.xml']);

  ### disable "request new password" function.
  $callback['user/password']['access callback'] = FALSE;
  $callback['user/password']['access arguments'] = array(FALSE);
}
?>

No comments: