function 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

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