function pay_perm in Pay 6
Implementation of hook_perm().
File
- ./
pay.module, line 33 - Pay module allows for accepting payments using pluggable payment backends.
Code
function pay_perm() {
// Permissions based on form types and global settings.
$permissions = array(
'view reports for any payment form',
'administer pay',
'administer payments for any form',
'make payments on any form',
);
foreach (pay_handlers('pay_form') as $name => $info) {
$permissions[] = 'administer payments for ' . $name . ' forms';
$permissions[] = 'make payments on ' . $name . ' forms';
$permissions[] = 'view reports for ' . $name . ' forms';
}
return $permissions;
}