You are here

function view::_init_handler in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 includes/ \view::_init_handler()
  2. 7.3 includes/ \view::_init_handler()

Attach all of the handlers for each type.


$key: One of 'argument', 'field', 'sort', 'filter', 'relationship'

$info: The $info from views_object_types for this object.

1 call to view::_init_handler()
view::init_handlers in includes/
Acquire and attach all of the handlers.


includes/, line 417 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_handler($key, $info) {

  // Load the requested items from the display onto the object.
  $this->{$key} =& $this->display_handler

  // This reference deals with difficult PHP indirection.
  $handlers =& $this->{$key};

  // Run through and test for accessibility.
  foreach ($handlers as $id => $handler) {
    if (!$handler
      ->access()) {