You are here

function views_tabset::remove in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 includes/tabs.inc \views_tabset::remove()

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]);
  }
}