You are here

public function views_plugin_access::init in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_access.inc \views_plugin_access::init()
  2. 6.2 plugins/views_plugin_access.inc \views_plugin_access::init()

Initialize the plugin.

Parameters

view $view: The view object.

object $display: The display handler.

File

plugins/views_plugin_access.inc, line 29
Definition of views_plugin_access.

Class

views_plugin_access
The base plugin to handle access control.

Code

public function init(&$view, &$display) {
  $this->view =& $view;
  $this->display =& $display;
  if (is_object($display->handler)) {
    $options = $display->handler
      ->get_option('access');

    // Overlay incoming options on top of defaults.
    $this
      ->unpack_options($this->options, $options);
  }
}