You are here

class views_plugin_argument_validate_course in Course 6

Same name and namespace in other branches
  1. 7.2 views/plugins/views_plugin_argument_validate_course.inc \views_plugin_argument_validate_course
  2. 7 views/plugins/views_plugin_argument_validate_course.inc \views_plugin_argument_validate_course

Validate whether an argument is a course.

Hierarchy

Expanded class hierarchy of views_plugin_argument_validate_course

1 string reference to 'views_plugin_argument_validate_course'
course_views_plugins in ./course.module
Implements hook_views_plugins().

File

views/plugins/views_plugin_argument_validate_course.inc, line 6

View source
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);
  }

}

Members