You are here

function course_load in Course 6

Same name and namespace in other branches
  1. 7.2 course.module \course_load()
  2. 7 course.module \course_load()

Menu loader: check if node is a Course.

File

./course.module, line 620
course.module Core functionality for Courses.

Code

function course_load($arg) {
  $node = node_load($arg);
  return course_node_is_course($node) ? $node : FALSE;
}