function views_tabset::remove

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

Remove a tab.

Parameters

$tab: May be the name of the tab or a views_tab object.

File

includes/tabs.inc, line 102
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 remove($tab) {
  if (is_string($tab)) {
    unset($this->tabs[$tab]);
  }
  else {
    unset($this->tabs[$tab->name]);
  }
}