You are here

function views_php_handler_sort::option_definition in Views PHP 7.2

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

Implements views_object#option_definition().

Overrides views_handler_sort::option_definition

File

plugins/views/views_php_handler_sort.inc, line 15

Class

views_php_handler_sort
A handler to sort 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_sort'] = array(
    'default' => '',
  );
  return $options;
}