You are here

function acquia_search_environment_delete_access in Acquia Connector 7

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

Delete environment page access.

1 string reference to 'acquia_search_environment_delete_access'
acquia_search_menu_alter in acquia_search/acquia_search.module
Implementation of hook_menu_alter().

File

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

Code

function acquia_search_environment_delete_access($environment) {
  if (strstr($environment['env_id'], ACQUIA_SEARCH_ENVIRONMENT_ID)) {
    return FALSE;
  }

  // Fall back to the original check.
  return user_access('administer search');
}