function commerce_checkout_rules_action_info in Commerce Core 7
Implements hook_rules_action_info().
File
- modules/
checkout/ commerce_checkout.rules.inc, line 35 - Rules integration for the checkout process.
Code
function commerce_checkout_rules_action_info() {
$actions = array();
$actions['send_account_email'] = array(
'label' => t('Send account e-mail'),
'parameter' => array(
'account' => array(
'type' => 'user',
'label' => t('Account'),
),
'email_type' => array(
'type' => 'text',
'label' => t('E-mail type'),
'description' => t("Select the e-mail based on your site's account settings to send to the user."),
'options list' => 'commerce_checkout_account_email_options_list',
),
),
'group' => t('User'),
'base' => 'commerce_checkout_action_send_account_email',
'access callback' => 'rules_system_integration_access',
);
$actions['commerce_checkout_complete'] = array(
'label' => t('Complete checkout for an order'),
'parameter' => array(
'commerce_order' => array(
'type' => 'commerce_order',
'label' => t('Order in checkout'),
),
),
'group' => t('Commerce Checkout'),
'callbacks' => array(
'execute' => 'commerce_checkout_rules_complete_checkout',
),
);
return $actions;
}