public function views_handler_argument_null::validate_argument_basic in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 handlers/views_handler_argument_null.inc \views_handler_argument_null::validate_argument_basic()
- 6.2 handlers/views_handler_argument_null.inc \views_handler_argument_null::validate_argument_basic()
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.
Return value
bool Whether or not the argument validates.
Overrides views_handler_argument::validate_argument_basic
File
- handlers/
views_handler_argument_null.inc, line 61 - Definition of views_handler_argument_null.
Class
- views_handler_argument_null
- Argument handler that ignores the argument.
Code
public function validate_argument_basic($arg) {
if (!empty($this->options['must_not_be'])) {
return !isset($arg);
}
return parent::validate_argument_basic($arg);
}