function uc_recurring_action_renewal_email_form in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 7.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 380 - 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()) {
// If a user is adding this action via the UI the settings will not exist.
if (is_null($settings)) {
$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',
));
}