function uc_recurring_action_renewal_email_form in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 uc_recurring.ca.inc \uc_recurring_action_renewal_email_form()
Email settings form.
See also
uc_recurring_action_renewal_email()
File
- ./
uc_recurring.ca.inc, line 386 - 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_action_renewal_email_form($form_state, $settings = array()) {
// ca_build_email_form() function seems to be incorrectly part of uc_roles so
// we add this hack to include the uc_roles.ca.inc here.
module_load_include('inc', 'uc_roles', 'uc_roles.ca');
$settings += array(
'from' => uc_store_email_from(),
'addresses' => '[order-email]',
'subject' => uc_get_message('uc_recurring_renewal_completed_subject'),
'message' => uc_get_message('uc_recurring_renewal_completed_message'),
'format' => 1,
);
return ca_build_email_form($form_state, $settings, array(
'global',
'order',
'user',
'recurring_fee',
));
}