function view::set_display

cis7 view::set_display($display_id = NULL)
cle7 view::set_display($display_id = NULL)
elmsmedia7 view::set_display($display_id = NULL)
icor7 view::set_display($display_id = NULL)
meedjum_blog7 view::set_display($display_id = NULL)
mooc7 view::set_display($display_id = NULL)

Set the display as current.


$display_id: The id of the display to mark as current.

8 calls to view::set_display()
view::build in sites/all/modules/ulmus/views/includes/
Build the query for the view.
view::execute_display in sites/all/modules/ulmus/views/includes/
Execute the given display, with the given arguments. To be called externally by whatever mechanism invokes the view, such as a page callback, hook_block, etc.
view::execute_hook_block_list in sites/all/modules/ulmus/views/includes/
Called to get hook_block information from the view and the named display handler.
view::execute_hook_menu in sites/all/modules/ulmus/views/includes/
Called to get hook_menu() information from the view and the named display handler.
view::get_path in sites/all/modules/ulmus/views/includes/
Get the base path used for this view.

... See full list


sites/all/modules/ulmus/views/includes/, line 511
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 set_display($display_id = NULL) {
  // If we have not already initialized the display, do so. But be careful.
  if (empty($this->current_display)) {

    // If handlers were not initialized, and no argument was sent, set up
    // to the default display.
    if (empty($display_id)) {
      $display_id = 'default';

  $display_id = $this->choose_display($display_id);

  // If no display id sent in and one wasn't chosen above, we're finished.
  if (empty($display_id)) {
    return FALSE;

  // Ensure the requested display exists.
  if (empty($this->display[$display_id])) {
    $display_id = 'default';
    if (empty($this->display[$display_id])) {
      vpr('set_display() called with invalid display id @display.', array('@display' => $display_id));
      return FALSE;

  // Set the current display.
  $this->current_display = $display_id;

  // Ensure requested display has a working handler.
  if (empty($this->display[$display_id]->handler)) {
    return FALSE;

  // Set a shortcut
  $this->display_handler = &$this->display[$display_id]->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.