function search_config_permission in Search configuration 7
Implements hook_permission().
1 call to search_config_permission()
File
- ./
search_config.module, line 122 - Main functionality for the Search Configuration module.
Code
function search_config_permission() {
$permissions = array(
'admin node search exclusions' => array(
'title' => t('Exclude nodes from search results'),
'description' => t('This allows users with this permission to flag content as not to be searched.'),
),
'search all content' => array(
'title' => t('Search all content types'),
'description' => t('Allow users to search any content, overriding content type permissions.'),
),
'search all excluded entities' => array(
'title' => t('Search excluded content'),
'description' => t('Allow users to search any content, overriding individual content item exclusion settings.'),
),
);
foreach (search_config_content_types() as $type => $label) {
$permissions["search {$type} content"] = array(
'title' => t('%type_name: Search content of this type', array(
'%type_name' => $label,
)),
);
}
return $permissions;
}