function views_plugin_argument_validate_php::validate_argument

cis7 views_plugin_argument_validate_php.inc views_plugin_argument_validate_php::validate_argument($argument)
cle7 views_plugin_argument_validate_php.inc views_plugin_argument_validate_php::validate_argument($argument)
elmsmedia7 views_plugin_argument_validate_php.inc views_plugin_argument_validate_php::validate_argument($argument)
icor7 views_plugin_argument_validate_php.inc views_plugin_argument_validate_php::validate_argument($argument)
meedjum_blog7 views_plugin_argument_validate_php.inc views_plugin_argument_validate_php::validate_argument($argument)
mooc7 views_plugin_argument_validate_php.inc views_plugin_argument_validate_php::validate_argument($argument)

Overrides views_plugin_argument_validate::validate_argument

File

sites/all/modules/ulmus/views/plugins/views_plugin_argument_validate_php.inc, line 47
Contains the php code argument validator plugin.

Class

views_plugin_argument_validate_php
Provide PHP code to validate whether or not an argument is ok.

Code

function validate_argument($argument) {
  // set up variables to make it easier to reference during the argument.
  $view = &$this->view;
  $handler = &$this->argument;

  ob_start();
  $result = eval($this->options['code']);
  ob_end_clean();
  return $result;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.