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

plugins/views_plugin_argument_validate.inc

Go to the documentation of this file.
00001 <?php
00021 class views_plugin_argument_validate extends views_plugin {
00022 
00027   function init(&$view, &$argument, $options) {
00028     $this->view = &$view;
00029     $this->argument = &$argument;
00030 
00031     $this->convert_options($options);
00032     $this->unpack_options($this->options, $options);
00033   }
00034 
00039   function option_definition() { return array(); }
00040 
00044   function options_form(&$form, &$form_state) { }
00045 
00049   function options_validate(&$form, &$form_state) { }
00050 
00054   function options_submit(&$form, &$form_state, &$options = array()) { }
00055 
00064   function convert_options(&$options) { }
00065 
00069   function access() { return TRUE; }
00070 
00078   function check_access(&$form, $option_name) {
00079     if (!$this->access()) {
00080       $form[$option_name]['#disabled'] = TRUE;
00081       $form[$option_name]['#value'] = $form[$this->option_name]['#default_value'];
00082       $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>';
00083     }
00084   }
00085 
00086   function validate_argument($arg) { return TRUE; }
00087 
00096   function process_summary_arguments(&$args) { }
00097 }
00098 

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