You are here

function theme_uc_coupon_actions in Ubercart Discount Coupons 6

Same name and namespace in other branches
  1. 7.3 uc_coupon.admin.inc \theme_uc_coupon_actions()
  2. 7.2 uc_coupon.admin.inc \theme_uc_coupon_actions()

Show the actions a user may perform on a coupon.

2 theme calls to theme_uc_coupon_actions()
uc_coupon_display in ./uc_coupon.admin.inc
Display a brief overview of system coupons
uc_coupon_handler_field_actions::render in views/uc_coupon_handler_field_actions.inc

File

./uc_coupon.admin.inc, line 1062

Code

function theme_uc_coupon_actions($coupon) {
  $actions = array();
  foreach (module_invoke_all('uc_coupon_actions', $coupon) as $action) {
    $icon = theme('image', $action['icon'], $action['title']);
    $actions[] = l($icon, $action['url'], array(
      'attributes' => array(
        'title' => $action['title'],
      ),
      'html' => TRUE,
    ));
  }
  return implode(' ', $actions);
}