public function similar_handler_argument_nid::validate_arg in Similar Entries 6.2
Same name and namespace in other branches
- 7.2 views/similar_handler_argument_nid.inc \similar_handler_argument_nid::validate_arg()
Validates that the argument works.
File
- views/
similar_handler_argument_nid.inc, line 216 - Defines the Similar entries node ID argument.
Class
- similar_handler_argument_nid
- Defines the similar entries View node ID argument.
Code
public function validate_arg($arg) {
if (!parent::validate_arg($arg)) {
return FALSE;
}
if (!empty($this->options['break_phrase'])) {
views_break_phrase($this->argument, $this);
}
else {
$this->value = array(
$this->argument,
);
}
$this->view->nids = $this->value;
return TRUE;
}