public function feeds_views_handler_argument_importer_id::validate_arg in Feeds 7.2
Same name and namespace in other branches
- 8.2 views/feeds_views_handler_argument_importer_id.inc \feeds_views_handler_argument_importer_id::validate_arg()
Argument must be a valid importer id.
Overrides views_handler_argument::validate_arg
File
- views/
feeds_views_handler_argument_importer_id.inc, line 16 - Argument handler for importer ids.
Class
Code
public function validate_arg($arg) {
// By using % in URLs, arguments could be validated twice; this eases
// that pain.
if (isset($this->argument_validated)) {
return $this->argument_validated;
}
$this->argument_validated = FALSE;
if (in_array($arg, feeds_enabled_importers())) {
$this->argument_validated = TRUE;
}
return $this->argument_validated;
}