function commerce_gc_form_commerce_coupon_type_settings_form_alter in Commerce GC 7
Implements hook_form_FORM_ID_alter().
File
- ./
commerce_gc.module, line 744 - Provides Giftcard coupon bundle, Giftcard Transaction entity and basic user interface elements.
Code
function commerce_gc_form_commerce_coupon_type_settings_form_alter(&$form, &$form_state) {
$form['commerce_gc_disable_empty_cards'] = array(
'#type' => 'checkbox',
'#title' => t('Use cron to disable giftcards with no value remaining.'),
'#default_value' => variable_get('commerce_gc_disable_empty_cards', FALSE),
);
}