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

plugins/views_plugin_argument_default.inc

Go to the documentation of this file.
00001 <?php
00020 class views_plugin_argument_default extends views_plugin {
00026   function get_argument() { }
00027 
00032   function init(&$view, &$argument, $options) {
00033     $this->view = &$view;
00034     $this->argument = &$argument;
00035 
00036     $this->convert_options($options);
00037     $this->unpack_options($this->options, $options);
00038   }
00039 
00044   function option_definition() { return array(); }
00045 
00049   function options_form(&$form, &$form_state) { }
00050 
00054   function options_validate(&$form, &$form_state) { }
00055 
00059   function options_submit(&$form, &$form_state, &$options = array()) { }
00060 
00065   function access() { return TRUE; }
00066 
00074   function check_access(&$form, $option_name) {
00075     if (!$this->access()) {
00076       $form[$option_name]['#disabled'] = TRUE;
00077       $form[$option_name]['#value'] = $form[$this->option_name]['#default_value'];
00078       $form[$option_name]['#description'] .= ' <strong>' . t('Note: you do not have permission to modify this. If you change the default filter type, this setting will be lost and you will NOT be able to get it back.') . '</strong>';
00079     }
00080   }
00081 
00090   function convert_options(&$options) { }
00091 }
00092 

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