function commons_wiki_user_default_permissions in Drupal Commons 6.2
Implementation of hook_user_default_permissions().
File
- modules/
features/ commons_wiki/ commons_wiki.features.user_permission.inc, line 6
Code
function commons_wiki_user_default_permissions() {
$permissions = array();
// Exported permission: create wiki content
$permissions['create wiki content'] = array(
'name' => 'create wiki content',
'roles' => array(
'0' => 'authenticated user',
),
);
// Exported permission: delete any wiki content
$permissions['delete any wiki content'] = array(
'name' => 'delete any wiki content',
'roles' => array(
'0' => 'community manager',
),
);
// Exported permission: delete own wiki content
$permissions['delete own wiki content'] = array(
'name' => 'delete own wiki content',
'roles' => array(
'0' => 'authenticated user',
),
);
// Exported permission: edit any wiki content
$permissions['edit any wiki content'] = array(
'name' => 'edit any wiki content',
'roles' => array(
'0' => 'community manager',
),
);
// Exported permission: edit own wiki content
$permissions['edit own wiki content'] = array(
'name' => 'edit own wiki content',
'roles' => array(
'0' => 'authenticated user',
),
);
return $permissions;
}