function views_tabset::add_tab

2.x tabs.inc views_tabset::add_tab($tab)

Add a fully realized tab object to the tabset.

Parameters

$tab: A fully populated views_tab object.

1 call to views_tabset::add_tab()
views_tabset::add in includes/tabs.inc
Add a tab to the tabset.

File

includes/tabs.inc, line 55
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 add_tab($tab) {
  $this->tabs[$tab->name] = $tab;
}