function _sarnia_entity_manage_form_access in Sarnia 7
Determine whether to show the 'Sarnia' tab on a particular Search API server page.
- Sarnia entity types are only supported if the Search API server uses Solr.
- The current user must have permission to configure Sarnia entity types.
See also
1 string reference to '_sarnia_entity_manage_form_access'
- sarnia_menu in ./
sarnia.module - Implements hook_menu().
File
- ./
sarnia.module, line 178
Code
function _sarnia_entity_manage_form_access($server) {
return $server->class == 'sarnia_solr_service' && user_access('administer sarnia entity types');
}