You are here

function username_enumeration_prevention_delivery_wrapper in Username Enumeration Prevention 7

Converts 403 Access Denied responses to 404 Not Found on user profiles.

1 string reference to 'username_enumeration_prevention_delivery_wrapper'
username_enumeration_prevention_menu_alter in ./username_enumeration_prevention.module
Implements hook_menu_alter().

File

./username_enumeration_prevention.module, line 22
Main file for the Username Enumeration Prevention.

Code

function username_enumeration_prevention_delivery_wrapper($page_callback_result) {
  if ($page_callback_result == MENU_ACCESS_DENIED) {
    $page_callback_result = MENU_NOT_FOUND;
  }
  drupal_deliver_html_page($page_callback_result);
}