function uc_coupon_block_view in Ubercart Discount Coupons 7.3
Same name and namespace in other branches
- 7.2 uc_coupon.module \uc_coupon_block_view()
Implements hook_block_view().
File
- ./
uc_coupon.module, line 1132 - Provides discount codes and gift certificates for Ubercart.
Code
function uc_coupon_block_view($delta) {
if ($delta == 'coupon-discount') {
$block = array(
'subject' => t('Coupon discount'),
'content' => drupal_get_form('uc_coupon_form', 'block'),
);
return $block;
}
}