You are here

function course_node_is_course in Course 6

Same name and namespace in other branches
  1. 8.3 course.module \course_node_is_course()
  2. 8.2 course.module \course_node_is_course()
  3. 7.2 course.module \course_node_is_course()
  4. 7 course.module \course_node_is_course()
  5. 3.x modules/course_node/course_node.module \course_node_is_course()

Check if node is a Course.

Parameters

stdClass $node: A node object or string that indicates the node type to check.

Return value

bool

21 calls to course_node_is_course()
course_ajaj_fulfullment_check in ./course.module
Fulfillment check callback.
course_certificate_access_certificate in modules/course_certificate/course_certificate.module
Implements hook_access_certificate().
course_content_extra_fields in ./course.module
Implements hook_content_extra_fields().
course_context in ./course.module
Course context handler callback.
course_enrol in ./course.module
Enrols a user in a course.

... See full list

File

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

Code

function course_node_is_course($node) {
  $type = is_object($node) ? $node->type : $node;
  return variable_get("course_use_{$type}", 0);
}