function view::init_display

cis7 view::init_display($reset = FALSE)
cle7 view::init_display($reset = FALSE)
elmsmedia7 view::init_display($reset = FALSE)
icor7 view::init_display($reset = FALSE)
meedjum_blog7 view::init_display($reset = FALSE)
mooc7 view::init_display($reset = FALSE)

Set the display for this view and initialize the display handler.

7 calls to view::init_display()
view::access in sites/all/modules/ulmus/views/includes/
Determine if the given user has access to the view. Note that this sets the display handler if it hasn't been.
view::build_title in sites/all/modules/ulmus/views/includes/
Force the view to build a title.
view::choose_display in sites/all/modules/ulmus/views/includes/
Get the first display that is accessible to the user.
view::export in sites/all/modules/ulmus/views/includes/
Export a view as PHP code.
view::process_locale_strings in sites/all/modules/ulmus/views/includes/
Process strings for localization, deletion or export to code.

... See full list


sites/all/modules/ulmus/views/includes/, line 444
Provides the view object type and associated methods.


An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.


function init_display($reset = FALSE) {
  // The default display is always the first one in the list.
  if (isset($this->current_display)) {
    return TRUE;

  // Instantiate all displays
  foreach (array_keys($this->display) as $id) {
    // Correct for shallow cloning
    // Often we'll have a cloned view so we don't mess up each other's
    // displays, but the clone is pretty shallow and doesn't necessarily
    // clone the displays. We can tell this by looking to see if a handler
    // has already been set; if it has, but $this->current_display is not
    // set, then something is dreadfully wrong.
    if (!empty($this->display[$id]->handler)) {
      $this->display[$id] = clone $this->display[$id];
    $this->display[$id]->handler = views_get_plugin('display', $this->display[$id]->display_plugin);
    if (!empty($this->display[$id]->handler)) {
      $this->display[$id]->handler->localization_keys = array($id);
      // Initialize the new display handler with data.
      $this->display[$id]->handler->init($this, $this->display[$id]);
      // If this is NOT the default display handler, let it know which is
      // since it may well utilize some data from the default.
      // This assumes that the 'default' handler is always first. It always
      // is. Make sure of it.
      if ($id != 'default') {
        $this->display[$id]->handler->default_display = &$this->display['default']->handler;

  $this->current_display = 'default';
  $this->display_handler = &$this->display['default']->handler;

  return TRUE;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.