function search_api_access_execute_tasks_batch in Search API 7
Access callback: Checks whether a user can execute pending tasks.
Parameters
SearchApiServer|null $server: (optional) The server for which tasks would be executed.
1 string reference to 'search_api_access_execute_tasks_batch'
- search_api_menu in ./
search_api.module - Implements hook_menu().
File
- ./
search_api.module, line 1605 - Provides a flexible framework for implementing search services.
Code
function search_api_access_execute_tasks_batch(SearchApiServer $server = NULL) {
return user_access('administer search_api') && search_api_server_tasks_count($server) && (!$server || $server->enabled);
}