function views_tabset::render

2.x tabs.inc views_tabset::render()

Output the HTML for the tabs.

Return value

HTML representation of the tabs.

File

includes/tabs.inc, line 124
Classes and theme functions for rendering javascript UI tabs.

Class

views_tabset
Contain a set of tabs as well as the ability to render them.

Code

function render() {
  views_add_js('tabs');
  views_add_css('views-tabs');

  if (empty($this->selected)) {
    $keys = array_keys($this->tabs);
    $this->selected = array_shift($keys);
  }

  drupal_alter('views_tabset', $this);
  return theme('views_tabset', $this->tabs, $this->extra, $this->selected);
}