You are here

function acquia_search_environment_delete_access in Acquia Search 6.3

Delete environment page access.

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

File

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

Code

function acquia_search_environment_delete_access($environment) {
  if ($environment['env_id'] == ACQUIA_SEARCH_ENVIRONMENT_ID && !isset($environment['export_type'])) {
    return FALSE;
  }

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