You are here

function views_ui::list_page in Views (for Drupal 7) 7.3

Master entry point for handling a list.

It is unlikely that a child object will need to override this method, unless the listing mechanism is going to be highly specialized.

Overrides ctools_export_ui::list_page

1 call to views_ui::list_page()
views_ui::set_item_state in plugins/export_ui/views_ui.class.php
Set an item's state to enabled or disabled and output to user.

File

plugins/export_ui/views_ui.class.php, line 445
Contains the CTools Export UI integration code.

Class

views_ui
CTools Export UI class handler for Views UI.

Code

function list_page($js, $input) {

  // Remove filters values from session if filters are hidden.
  if (!variable_get('views_ui_show_listing_filters', FALSE) && isset($_SESSION['ctools_export_ui'][$this->plugin['name']])) {
    unset($_SESSION['ctools_export_ui'][$this->plugin['name']]);
  }

  // Wrap output in a div for CSS.
  $output = parent::list_page($js, $input);
  if (is_string($output)) {
    $output = '<div id="views-ui-list-page">' . $output . '</div>';
  }
  return $output;
}