function merci_permissions_rules_action_info in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Implements hook_rules_action_info() on behalf of the user module.
File
- merci_permissions/
merci_permissions.module, line 30
Code
function merci_permissions_rules_action_info() {
$defaults = array(
'parameter' => array(
'roles_required' => array(
'type' => 'list<text>',
'label' => t('Required roles'),
'save' => FALSE,
),
'roles_user' => array(
'type' => 'list<text>',
'label' => t('User roles'),
'save' => FALSE,
),
'errors' => array(
'type' => 'struct',
'label' => t('Errors'),
'save' => FALSE,
),
),
'group' => t('MERCI'),
);
$actions['merci_permissions_conflicts'] = $defaults + array(
'label' => t('Validate MERCI permissions'),
'base' => 'merci_permissions_rules_line_item_validate',
);
return $actions;
}