Skip navigation
Help

theme_uc_catalog_block

6 uc_catalog.module theme_uc_catalog_block($menu_tree)
7 uc_catalog.theme.inc theme_uc_catalog_block($variables)

Themes the catalog block.

See also

theme_uc_catalog_item()

Related topics

1 theme call to theme_uc_catalog_block()

File

ubercart/uc_catalog/uc_catalog.theme.inc, line 14
Theme functions for the uc_catalog module.

Code

function theme_uc_catalog_block($variables) {
  $menu_tree = $variables['menu_tree'];

  $output = '<ul class="catalog menu">';

  foreach ($menu_tree->children as $branch) {
    list($inpath, $html) = _uc_catalog_navigation($branch);
    $output .= $html;
  }

  $output .= '</ul>';

  return $output;
}