function commerce_registration_rules_action_info in Commerce Registration 7.2
Same name and namespace in other branches
- 7.3 commerce_registration.rules.inc \commerce_registration_rules_action_info()
- 7 commerce_registration.rules.inc \commerce_registration_rules_action_info()
Implements hook_rules_action_info().
File
- ./
commerce_registration.rules.inc, line 45 - Commerce Registration rules file.
Code
function commerce_registration_rules_action_info() {
$actions = array();
$actions['commerce_registration_set_state'] = array(
'label' => t('Set all Registrations to a specific state'),
'group' => t('Commerce Registration'),
'parameter' => array(
'commerce_order' => array(
'type' => 'commerce_order',
'label' => t('Commerce Order'),
'description' => t('All registrations on this order will have their state changed.'),
),
'registration_state' => array(
'type' => 'text',
'label' => t('Registration State'),
'description' => t('Registrations will be set to this state.'),
'options list' => 'commerce_registration_get_states',
),
),
);
$actions['commerce_registration_delete_registrations'] = array(
'label' => t('Delete all registrations on an Order'),
'group' => t('Commerce Registration'),
'parameter' => array(
'commerce_order' => array(
'type' => 'commerce_order',
'label' => t('Commerce Order'),
'description' => t('All registrations on this order will be deleted.'),
),
),
);
$actions['commerce_registration_add_author_uid'] = array(
'label' => t('Add UID of User created during Checkout to Registration'),
'group' => t('Commerce Registration'),
'parameter' => array(
'commerce_order' => array(
'type' => 'commerce_order',
'label' => t('Commerce Order'),
'description' => t('The registration on this order that was set for "Myself" will have the User ID added as author.'),
),
),
);
$actions['commerce_registration_load_product_registrations'] = array(
'label' => t('Load all registrations associated with a line item'),
'group' => t('Commerce Registration'),
'parameter' => array(
'commerce_line_item' => array(
'type' => 'commerce_line_item',
'label' => t('Commerce Line Item'),
'description' => t('The Commerce Line Item for which to load all associated registrations.'),
),
),
'provides' => array(
'line_item_registrations' => array(
'type' => 'list<registration>',
'label' => t('Line item registrations'),
),
),
);
return $actions;
}