You are here

public function views_php_plugin_cache::option_definition in Views PHP 7

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

Implements views_object#option_definition().

Overrides views_object::option_definition

File

plugins/views/views_php_plugin_cache.inc, line 20

Class

views_php_plugin_cache
Caching plugin that provides cache control based on custom PHP code.

Code

public function option_definition() {
  $options = parent::option_definition();
  $options['php_cache_results'] = array(
    'default' => '',
  );
  $options['php_cache_output'] = array(
    'default' => '',
  );
  return $options;
}