function uc_recurring_ca_action in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 7.2 uc_recurring.ca.inc \uc_recurring_ca_action()
Implementation of hook_ca_action().
File
- ./
uc_recurring.ca.inc, line 241 - This file contains the Conditional Actions hooks and functions necessary to make the recurring-related entity, conditions, events, and actions work.
Code
function uc_recurring_ca_action() {
// Send an email to an order with a role expiration
$actions['uc_recurring_renewal_email'] = array(
'#title' => t('Send an order email regarding order renewal.'),
'#category' => t('Notification'),
'#callback' => 'uc_recurring_action_renewal_email',
'#arguments' => array(
'order' => array(
'#entity' => 'uc_order',
'#title' => t('Order'),
),
'recurring_fee' => array(
'#entity' => 'uc_recurring_fee',
'#title' => t('Recurring Fee'),
),
),
);
return $actions;
}