function theme_uc_coupon_form in Ubercart Discount Coupons 7.2
Same name and namespace in other branches
- 7.3 uc_coupon.module \theme_uc_coupon_form()
Default theme implementation for the coupon submit form.
File
- ./
uc_coupon.module, line 1029
Code
function theme_uc_coupon_form($variables) {
$form = $variables['form'];
$output = '';
if ($form['#uc_coupon_form_context'] == 'cart') {
$output .= '<h3>' . t('Coupon discounts') . '</h3>';
}
elseif ($form['#uc_coupon_form_context'] == 'block') {
if (isset($form['code'])) {
$form['code']['#size'] = 15;
}
}
$output .= drupal_render_children($form);
return $output;
}