function theme_commerce_coupon_add_list in Commerce Coupon 7.2
Displays the list of available product types for product creation.
1 theme call to theme_commerce_coupon_add_list()
- commerce_coupon_add_page in includes/
commerce_coupon.admin.inc - Menu callback: display a list of product types that the user can create.
File
- includes/
commerce_coupon.admin.inc, line 72 - Administrative forms and callbacks for Commerce Coupon.
Code
function theme_commerce_coupon_add_list($variables) {
$content = $variables['content'];
$output = '';
if ($content) {
$output = '<dl class="commerce-coupon-type-list">';
foreach ($content as $item) {
$output .= '<dt>' . l($item['title'], $item['href'], $item['localized_options']) . '</dt>';
$output .= '<dd>' . filter_xss_admin($item['description']) . '</dd>';
}
$output .= '</dl>';
}
else {
$output = '<p>' . t('No coupon types have been created yet for you to use.') . '</p>';
}
return $output;
}