function course_node_is_course in Course 8.2
Same name and namespace in other branches
- 8.3 course.module \course_node_is_course()
- 6 course.module \course_node_is_course()
- 7.2 course.module \course_node_is_course()
- 7 course.module \course_node_is_course()
- 3.x modules/course_node/course_node.module \course_node_is_course()
Check if a Node references a Course.
Parameters
Node $node: A node.
Return value
bool
10 calls to course_node_is_course()
- course_ajaj_fulfullment_check in ./
course.module - Fulfillment check callback.
- course_get_course in ./
course.module - Get the Course that a Node references.
- course_node_export_node_alter in includes/
course.exporting.inc - Implements hook_node_export_node_alter().
- course_tokens in ./
course.module - Implements hook_tokens().
- course_uc_enroll_user_in_ordered_courses in modules/
course_uc/ course_uc.module - Loops through items in an Ubercart order and enrolls the user in courses purchased.
File
- ./
course.module, line 499 - course.module Core functionality for Courses.
Code
function course_node_is_course(Node $node) {
$type = $node
->getType();
$node_type = NodeType::load($type);
return $node_type
->getThirdPartySetting('course', 'enabled');
}