function theme_uc_catalog_products in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_catalog/uc_catalog.module \theme_uc_catalog_products()
Display a formatted list of products.
Parameters
$products: An array of product nids.
Return value
A TAPIr table.
1 theme call to theme_uc_catalog_products()
- theme_uc_catalog_browse in uc_catalog/
uc_catalog.module - Display a formatted catalog page.
File
- uc_catalog/
uc_catalog.module, line 942 - Übercart Catalog module.
Code
function theme_uc_catalog_products($products) {
if (!$products) {
$output .= '<div class="no-products">' . t('No products are available in this category.') . '</div>';
return $output;
}
else {
if (variable_get('uc_catalog_grid_display', false)) {
return theme('uc_catalog_product_grid', $products);
}
else {
$table_args = array(
'nids' => $products,
'attributes' => array(
'class' => 'category-products',
),
);
return tapir_get_table('uc_product_table', $table_args);
}
}
}