83 lines
2.1 KiB
PHP
83 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* @file
|
|
* commons_polls.features.user_permission.inc
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_user_default_permissions().
|
|
*/
|
|
function commons_polls_user_default_permissions() {
|
|
$permissions = array();
|
|
|
|
// Exported permission: 'cancel own vote'.
|
|
$permissions['cancel own vote'] = array(
|
|
'name' => 'cancel own vote',
|
|
'roles' => array(
|
|
'administrator' => 'administrator',
|
|
'authenticated user' => 'authenticated user',
|
|
),
|
|
'module' => 'poll',
|
|
);
|
|
|
|
// Exported permission: 'create poll content'.
|
|
$permissions['create poll content'] = array(
|
|
'name' => 'create poll content',
|
|
'roles' => array(
|
|
'administrator' => 'administrator',
|
|
'authenticated user' => 'authenticated user',
|
|
),
|
|
'module' => 'node',
|
|
);
|
|
|
|
// Exported permission: 'delete any poll content'.
|
|
$permissions['delete any poll content'] = array(
|
|
'name' => 'delete any poll content',
|
|
'roles' => array(
|
|
'administrator' => 'administrator',
|
|
),
|
|
'module' => 'node',
|
|
);
|
|
|
|
// Exported permission: 'delete own poll content'.
|
|
$permissions['delete own poll content'] = array(
|
|
'name' => 'delete own poll content',
|
|
'roles' => array(
|
|
'administrator' => 'administrator',
|
|
'authenticated user' => 'authenticated user',
|
|
),
|
|
'module' => 'node',
|
|
);
|
|
|
|
// Exported permission: 'edit any poll content'.
|
|
$permissions['edit any poll content'] = array(
|
|
'name' => 'edit any poll content',
|
|
'roles' => array(
|
|
'administrator' => 'administrator',
|
|
),
|
|
'module' => 'node',
|
|
);
|
|
|
|
// Exported permission: 'edit own poll content'.
|
|
$permissions['edit own poll content'] = array(
|
|
'name' => 'edit own poll content',
|
|
'roles' => array(
|
|
'administrator' => 'administrator',
|
|
'authenticated user' => 'authenticated user',
|
|
),
|
|
'module' => 'node',
|
|
);
|
|
|
|
// Exported permission: 'vote on polls'.
|
|
$permissions['vote on polls'] = array(
|
|
'name' => 'vote on polls',
|
|
'roles' => array(
|
|
'administrator' => 'administrator',
|
|
'authenticated user' => 'authenticated user',
|
|
),
|
|
'module' => 'poll',
|
|
);
|
|
|
|
return $permissions;
|
|
}
|