function views_handler_argument_null::validate_argument_basic

Same name in other branches
  1. 7.x-3.x handlers/views_handler_argument_null.inc \views_handler_argument_null::validate_argument_basic()

Overrides views_handler_argument::validate_argument_basic

File

handlers/views_handler_argument_null.inc, line 48

Class

views_handler_argument_null
Argument handler that ignores the argument.

Code

function validate_argument_basic($arg) {
    if (!empty($this->options['must_not_be'])) {
        return !isset($arg);
    }
    return parent::validate_argument_basic($arg);
}