You are here

function commerce_gc_form_alter in Commerce GC 7

File

./commerce_gc.module, line 784
Provides Giftcard coupon bundle, Giftcard Transaction entity and basic user interface elements.

Code

function commerce_gc_form_alter(&$form, &$form_state, $form_id) {
  if (strpos($form_id, 'commerce_checkout_form') === 0 && !empty($form['commerce_coupon'])) {

    // Change labels for coupon input pane.
    $form['commerce_coupon']['#title'] = t('Coupons and giftcards');
    $form['commerce_coupon']['coupon_code']['#description'] = t('Enter a coupon or giftcard code here.');
    $form['commerce_coupon']['coupon_code']['#title'] = t('Code');
    $form['commerce_coupon']['coupon_add']['#value'] = t('Add');
  }
}