function search_api_access_delete_page in Search API 7
Access callback for determining if a server's or index' "delete" page should be accessible.
Parameters
Entity $entity: The server or index for which the access to the delete page is checked.
Return value
bool TRUE if the delete page can be accessed by the user, FALSE otherwise.
1 string reference to 'search_api_access_delete_page'
- search_api_menu in ./
search_api.module - Implements hook_menu().
File
- ./
search_api.module, line 2685 - Provides a flexible framework for implementing search services.
Code
function search_api_access_delete_page(Entity $entity) {
return user_access('administer search_api') && $entity
->hasStatus(ENTITY_CUSTOM);
}