views_plugin_argument_validate_course.inc in Course 6
Same filename and directory in other branches
File
views/plugins/views_plugin_argument_validate_course.incView source
<?php
/**
* Validate whether an argument is a course.
*/
class views_plugin_argument_validate_course extends views_plugin_argument_validate {
function validate_argument($argument) {
$node = node_load($argument);
$this->argument->validated_title = check_plain($node->title);
return course_node_is_course($node);
}
}
Classes
Name![]() |
Description |
---|---|
views_plugin_argument_validate_course | Validate whether an argument is a course. |