function views_plugin_access::init
Same name in other branches
- 7.x-3.x plugins/views_plugin_access.inc \views_plugin_access::init()
Initialize the plugin.
Parameters
$view: The view object.
$display: The display handler.
File
-
plugins/
views_plugin_access.inc, line 17
Class
- views_plugin_access
- The base plugin to handle access control.
Code
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);
}
}