function views_tabset::remove in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 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]);
}
}