function uc_coupon_block in Ubercart Discount Coupons 6
Implementation of hook_block().
File
- ./
uc_coupon.module, line 786 - Provides discount coupons for Ubercart.
Code
function uc_coupon_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks = array();
$blocks[0] = array(
'info' => t('Coupon discount form'),
);
return $blocks;
case 'view':
if ($delta == 0) {
$block = array(
'subject' => t('Coupon discount'),
'content' => drupal_get_form('uc_coupon_block_form'),
);
return $block;
}
break;
}
}