function views_tabset::set

Set the values of a tab.

Parameters

$name: The unique identifier of the tab to set.

$title: The title of the tab; this will be clickable.

$body: The HTML body of the tab.

File

includes/tabs.inc, line 69

Class

views_tabset
Contain a set of tabs as well as the ability to render them.

Code

function set($name, $title, $body = NULL) {
    if (empty($this->tabs[$name])) {
        return $this->add($name, $title, $body);
    }
    $this->tabs[$name]->title = $title;
    if (isset($body)) {
        $this->tabs[$name]->body = $body;
    }
}