You are here

function views_php_handler_filter::option_definition in Views PHP 7.2

Same name and namespace in other branches
  1. 6 plugins/views/views_php_handler_filter.inc \views_php_handler_filter::option_definition()
  2. 7 plugins/views/views_php_handler_filter.inc \views_php_handler_filter::option_definition()

Implements views_object#option_definition().

Overrides views_handler_filter::option_definition

File

plugins/views/views_php_handler_filter.inc, line 27

Class

views_php_handler_filter
A handler to filter a view using PHP defined by the administrator.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['use_php_setup'] = array(
    'default' => FALSE,
  );
  $options['php_setup'] = array(
    'default' => '',
  );
  $options['php_filter'] = array(
    'default' => '',
  );
  return $options;
}