• Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • File List
  • File Members

plugins/views_plugin_access.inc

00001 <?php
00002 
00008 class views_plugin_access extends views_plugin {
00017   function init(&$view, &$display) {
00018     $this->view = &$view;
00019     $this->display = &$display;
00020 
00021     if (is_object($display->handler)) {
00022       $options = $display->handler->get_option('access');
00023       // Overlay incoming options on top of defaults
00024       $this->unpack_options($this->options, $options);
00025     }
00026   }
00027 
00032   function option_definition() { return array(); }
00033 
00037   function options_form(&$form, &$form_state) { }
00038 
00042   function options_validate(&$form, &$form_state) { }
00043 
00047   function options_submit(&$form, &$form_state) { }
00048 
00053   function summary_title() {
00054     return t('Unknown');
00055   }
00056 
00060   function access($account) {
00061     // default to no access control.
00062     return TRUE;
00063   }
00064 
00077   function get_access_callback() {
00078     // default to no access control.
00079     return TRUE;
00080   }
00081 }

Generated on Sun Feb 26 2012 12:52:51 for Views by  doxygen 1.7.1