function course_content_nodeapi in Course 6
Implements hook_nodeapi().
File
- modules/
course_content/ course_content.module, line 50
Code
function course_content_nodeapi(&$node, $op, $a3, $a4) {
if ($op == 'view' && $a4 && variable_get("course_content_use_{$node->type}", 0)) {
global $user;
if ($courseObject = course_get_course_object('course_content', $node->type, $node->nid, $user)) {
$courseObject
->getFulfillment()
->setComplete()
->save();
}
}
}