1 views_plugin_argument_default_php.inc views_plugin_argument_default_php::get_argument()

Return the default argument.

This needs to be overridden by every default argument handler to properly do what is needed.

Overrides views_plugin_argument_default::get_argument

File

core/modules/views/plugins/views_plugin_argument_default_php.inc, line 47
Contains the php code argument default plugin.

Class

views_plugin_argument_default_php
Default argument plugin to provide a PHP code block.

Code

function get_argument() {
  // set up variables to make it easier to reference during the argument.
  $view = &$this->view;
  $argument = &$this->argument;
  ob_start();
  $result = eval($this->options['code']);
  ob_end_clean();
  return $result;
}