You are here

function views_tabset::add_tab in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 includes/tabs.inc \views_tabset::add_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;
}