You are here

function acquia_search_menu_alter in Acquia Connector 7.3

Same name and namespace in other branches
  1. 7 acquia_search/acquia_search.module \acquia_search_menu_alter()
  2. 7.2 acquia_search/acquia_search.module \acquia_search_menu_alter()

Implements hook_menu_alter().

File

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

Code

function acquia_search_menu_alter(&$menu) {
  $delete_page = 'admin/config/search/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(
      5,
    );
  }
}