groups/modules/commons/commons_search/commons_search.features.user_permission.inc
Marton Kiss 8ac59801be Refactor commons build process
Update commons modules to release 7.12, and move the codebase under
modules/commons instead of constant fetching from remote repository.
The commons.make file removed so it is not required to rebuild
groups distribution.

Change-Id: I3be393ba1af34427e2915b18ab1ad718fd4e54db
2014-05-28 15:58:33 +02:00

48 lines
1.2 KiB
PHP

<?php
/**
* @file
* commons_search.features.user_permission.inc
*/
/**
* Implements hook_user_default_permissions().
*/
function commons_search_user_default_permissions() {
$permissions = array();
// Exported permission: search content.
$permissions['search content'] = array(
'name' => 'search content',
'roles' => array(
'administrator' => 'administrator',
'anonymous user' => 'anonymous user',
'authenticated user' => 'authenticated user',
),
'module' => 'search',
);
// Exported permission: use advanced search.
$permissions['use advanced search'] = array(
'name' => 'use advanced search',
'roles' => array(
'administrator' => 'administrator',
'anonymous user' => 'anonymous user',
'authenticated user' => 'authenticated user',
),
'module' => 'search',
);
// Exported permission: use custom search.
$permissions['use custom search'] = array(
'name' => 'use custom search',
'roles' => array(
'administrator' => 'administrator',
'anonymous user' => 'anonymous user',
'authenticated user' => 'authenticated user',
),
'module' => 'custom_search',
);
return $permissions;
}