You are here

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

Same name and namespace in other branches
  1. 6.3 includes/tabs.inc \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
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 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;
  }
}