You are here

public function FacetapiWidgetLinks::execute in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 plugins/facetapi/widget_links.inc \FacetapiWidgetLinks::execute()
  2. 7 plugins/facetapi/widget_links.inc \FacetapiWidgetLinks::execute()

Renders the links.

Overrides FacetapiWidget::execute

File

plugins/facetapi/widget_links.inc, line 25
Widgets for facets rendered as links.

Class

FacetapiWidgetLinks
Widget that renders facets as a list of clickable links.

Code

public function execute() {
  $element =& $this->build[$this->facet['field alias']];

  // Sets each item's theme hook, builds item list.
  $this
    ->setThemeHooks($element);
  $element = theme('item_list', $this
    ->buildListItems($element), NULL, 'ul', $this->build['#attributes']);
}