function course_poll_context in Course 6
Course context handler callback.
1 string reference to 'course_poll_context'
- course_poll_course_handlers in modules/
course_poll/ course_poll.module - Implements hook_course_handlers().
File
- modules/
course_poll/ course_poll.module, line 6
Code
function course_poll_context() {
$node = node_load(arg(1));
if (isset($node->nid) && $node->type == 'poll') {
return array(
'object_type' => 'poll',
'instance' => $node->nid,
);
}
}