You are here

function acquia_search_menu_alter in Acquia Search 6.3

Same name and namespace in other branches
  1. 6 acquia_search.module \acquia_search_menu_alter()

Implementation of hook_menu_alter().

File

./acquia_search.module, line 145
Integration between Acquia Drupal and Acquia's hosted solr search service.

Code

function acquia_search_menu_alter(&$menu) {
  $delete_page = 'admin/settings/apachesolr/settings/%apachesolr_environment/delete';
  if (isset($menu[$delete_page])) {
    $menu[$delete_page]['access callback'] = 'acquia_search_environment_delete_access';
    $menu[$delete_page]['access arguments'] = array(
      4,
    );
  }
}