You are here

function uc_notify_form_alter in Ubercart 5

Implementation of hook_form_alter().

File

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

Code

function uc_notify_form_alter($form_id, &$form) {
  switch ($form_id) {
    case 'uc_order_view_update_form':
      $form['controls']['notify'] = array(
        '#type' => 'checkbox',
        '#title' => t('Send e-mail notification on update.'),
        '#weight' => 0,
      );
      $form['#submit']['uc_notify_order_update'] = array();
      break;
  }
}