function commerce_sagepay_permission in Drupal Commerce SagePay Integration 7
Implements hook_permission().
File
- ./
commerce_sagepay.module, line 154
Code
function commerce_sagepay_permission() {
$permissions = array(
'administer sagepay' => array(
'title' => t('Administer SagePay'),
'description' => t('Configure SagePay Settings.'),
'restrict access' => TRUE,
),
'sagepay abort payment' => array(
'title' => t('Abort Payment'),
'description' => t('Allow users to Abort a SagePay Payment'),
'restrict access' => TRUE,
),
'sagepay authorise payment' => array(
'title' => t('Authorise Payment'),
'description' => t('Allow users to Authorise a SagePay Payment'),
'restrict access' => TRUE,
),
'sagepay cancel payment' => array(
'title' => t('Cancel Payment'),
'description' => t('Allow users to Cancel a SagePay Payment'),
'restrict access' => TRUE,
),
'sagepay refund payment' => array(
'title' => t('Refund Payment'),
'description' => t('Allow users to Refund a SagePay Payment'),
'restrict access' => TRUE,
),
'sagepay release payment' => array(
'title' => t('Release Payment'),
'description' => t('Allow users to Release a SagePay Payment'),
'restrict access' => TRUE,
),
'sagepay repeat payment' => array(
'title' => t('Repeat Payment'),
'description' => t('Allow users to Repeat a SagePay Payment'),
'restrict access' => TRUE,
),
'sagepay repeat deferred payment' => array(
'title' => t('Repeat Deferred Payment'),
'description' => t('Allow users to Repeat a Deferred SagePay Payment'),
'restrict access' => TRUE,
),
'sagepay void payment' => array(
'title' => t('Void Payment'),
'description' => t('Allow users to Void a SagePay Payment'),
'restrict access' => TRUE,
),
);
return $permissions;
}