function search_api_autocomplete_permission in Search API Autocomplete 7
Implements hook_permission().
File
- ./
search_api_autocomplete.module, line 165 - Adds autocomplete capabilities for Search API searches.
Code
function search_api_autocomplete_permission() {
$perms = array();
foreach (search_api_autocomplete_search_load_multiple() as $id => $search) {
$perms['use search_api_autocomplete for ' . $id] = array(
'title' => t('Use autocomplete for the %search search', array(
'%search' => $search->name,
)),
);
}
return $perms;
}