function uc_catalog_browse in Ubercart 7.3
Shows the catalog page of the given category.
1 string reference to 'uc_catalog_browse'
- uc_catalog_menu in uc_catalog/
uc_catalog.module - Implements hook_menu().
File
- uc_catalog/
uc_catalog.module, line 417 - Ubercart Catalog module.
Code
function uc_catalog_browse($tid = 0) {
$build = array();
if ($terms = views_get_view('uc_catalog_terms')) {
$build['terms'] = array(
'#markup' => $terms
->preview('default', array(
$tid,
)),
);
}
if ($products = views_get_view('uc_catalog')) {
$display = variable_get('uc_catalog_display', 'catalog');
// Force the breadcrumb path to this page.
$products->override_path = 'catalog';
$build['products'] = array(
'#markup' => $products
->execute_display($display, array(
$tid,
)),
);
}
return $build;
}