function views_handler_argument::validate_argument_basic

cis7 views_handler_argument.inc views_handler_argument::validate_argument_basic($arg)
cle7 views_handler_argument.inc views_handler_argument::validate_argument_basic($arg)
elmsmedia7 views_handler_argument.inc views_handler_argument::validate_argument_basic($arg)
icor7 views_handler_argument.inc views_handler_argument::validate_argument_basic($arg)
meedjum_blog7 views_handler_argument.inc views_handler_argument::validate_argument_basic($arg)
mooc7 views_handler_argument.inc views_handler_argument::validate_argument_basic($arg)

Provide a basic argument validation.

This can be overridden for more complex types; the basic validator only checks to see if the argument is not NULL or is numeric if the definition says it's numeric.

1 call to views_handler_argument::validate_argument_basic()
views_handler_argument::validate_arg in sites/all/modules/ulmus/views/handlers/views_handler_argument.inc
Validate that this argument works. By default, all arguments are valid.
1 method overrides views_handler_argument::validate_argument_basic()
views_handler_argument_null::validate_argument_basic in sites/all/modules/ulmus/views/handlers/views_handler_argument_null.inc
Provide a basic argument validation.

File

sites/all/modules/ulmus/views/handlers/views_handler_argument.inc, line 1024
@todo.

Class

views_handler_argument
Base class for arguments.

Code

function validate_argument_basic($arg) {
  if (!isset($arg) || $arg === '') {
    return FALSE;
  }

  if (!empty($this->definition['numeric']) && !isset($this->options['break_phrase']) && !is_numeric($arg)) {
    return FALSE;
  }

  return TRUE;
}
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.