function views_ajax_command_replace_title

Replace the page title.

Return value

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

Related topics

1 call to views_ajax_command_replace_title()
views_ui_ajax_form in drupal/core/modules/views/views_ui/admin.inc
Generic entry point to handle forms.

File

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

Code

function views_ajax_command_replace_title($title) {
  $command = array(
    'command' => 'viewsReplaceTitle',
    'title' => $title,
    'siteName' => config('system.site')
      ->get('name'),
  );
  return $command;
}