You are here

function views_plugin_display_i18n_page::execute in i18n page views 6

Same name and namespace in other branches
  1. 6.0 views_plugin_display_i18n_page.inc \views_plugin_display_i18n_page::execute()
  2. 7 views_plugin_display_i18n_page.inc \views_plugin_display_i18n_page::execute()

The display page handler returns a normal view, but it also does a drupal_set_title for the page, and does a views_set_page_view on the view.

File

./views_plugin_display_i18n_page.inc, line 93
Contains the i18n page display plugin.

Class

views_plugin_display_i18n_page
The plugin that handles a full page.

Code

function execute() {

  // Let the world know that this is the page view we're using.
  views_set_page_view($this);

  // Prior to this being called, the $view should already be set to this
  // display, and arguments should be set on the view.
  $this->view
    ->build();
  if (!empty($this->view->build_info['fail'])) {
    return drupal_not_found();
  }
  $this->view
    ->get_breadcrumb(TRUE);

  // And the title, which is much easier.
  drupal_set_title(filter_xss_admin($this->view
    ->get_title()));

  // And now render the view.
  return $this->view
    ->render();
}