function course_ajaj_fulfullment_check in Course 6
Same name and namespace in other branches
- 8.3 course.module \course_ajaj_fulfullment_check()
- 8.2 course.module \course_ajaj_fulfullment_check()
- 7 course.module \course_ajaj_fulfullment_check()
- 3.x course.module \course_ajaj_fulfullment_check()
Fulfillment check callback.
This function is polled from nav.js to check remote fulfillments for external learning objects.
1 string reference to 'course_ajaj_fulfullment_check'
- course_menu in ./
course.module - Implements hook_menu().
File
- ./
course.module, line 378 - course.module Core functionality for Courses.
Code
function course_ajaj_fulfullment_check($node, $courseObject, $js = FALSE) {
$courseObject
->poll();
if (course_node_is_course($node)) {
course_set_context($node);
}
module_load_include('inc', 'course', 'includes/course.block');
// Bust cache.
course_get_course($node, $courseObject
->getCourse()
->getUser(), TRUE);
$block = _course_block_navigation_view();
drupal_json(array(
'content' => $block['content'],
'complete' => $courseObject
->getFulfillment()
->isComplete(),
));
}