You are here

function uc_notify_order_update_form in Ubercart 5

1 string reference to 'uc_notify_order_update_form'
uc_notify_menu in uc_notify/uc_notify.module
Implementation of hook_menu().

File

uc_notify/uc_notify.module, line 276
Handles configuration and execution of email notifications.

Code

function uc_notify_order_update_form() {
  $form['uc_notify_order_update_enabled'] = array(
    '#type' => 'checkbox',
    '#title' => t('Send order update e-mails to customers when specified.'),
    '#default_value' => variable_get('uc_notify_order_update_enabled', TRUE),
  );
  $form['uc_notify_order_update_subject'] = array(
    '#type' => 'textfield',
    '#title' => t('Subject'),
    '#default_value' => variable_get('uc_notify_order_update_subject', t('Order #[order-id] Update')),
  );
  $form['uc_notify_order_update_body'] = array(
    '#type' => 'textarea',
    '#title' => t('Body'),
    '#description' => l(t('Uses order and global tokens.'), 'admin/store/help/tokens'),
    '#default_value' => variable_get('uc_notify_order_update_body', uc_get_message('order_update_email')),
    '#rows' => 10,
  );
  $form['uc_notify_order_update_format'] = filter_form(variable_get('uc_notify_order_update_format', 3), NULL, array(
    'uc_notify_order_update_format',
  ));
  return system_settings_form($form);
}