1.20.x ajax.inc views_ajax_command_add_tab($id, $title, $body)

Creates a Backdrop AJAX 'addTab' command.

Parameters

$id: The DOM ID.

$title: The title.

$body: The body.

Return value

An array suitable for use with the ajax_render() function.:

Related topics

File

modules/views/includes/ajax.inc, line 107
Handles the server side AJAX interactions of Views.

Code

function views_ajax_command_add_tab($id, $title, $body) {
  $command = array(
    'command' => 'viewsAddTab',
    'id' => $id,
    'title' => $title,
    'body' => $body,
  );
  return $command;
}