You are here

function search_api_saved_searches_settings_access in Search API Saved Searches 7

Access callback for settings entities.

Parameters

string $op: The operation being performed. One of "view", "update", "create" or "delete".

SearchApiSavedSearchesSettings|null $settings: (optional) The entity to check access for. If NULL is given, it will be determined whether access is allowed for all settings.

object|null $account: The user to check for. NULL to check for the global user.

Return value

bool Whether access is allowed or not.

See also

entity_access

1 string reference to 'search_api_saved_searches_settings_access'
search_api_saved_searches_entity_info in ./search_api_saved_searches.module
Implements hook_entity_info().

File

./search_api_saved_searches.module, line 244
Offers the ability to save searches and be notified of new results.

Code

function search_api_saved_searches_settings_access($op, SearchApiSavedSearchesSettings $settings = NULL, $account = NULL) {
  return user_access('administer search_api_saved_searches', $account);
}