You are here

function course_content_context in Course 6

Course context handler callback.

1 string reference to 'course_content_context'
course_content_course_handlers in modules/course_content/course_content.module
Implements hook_course_handlers().

File

modules/course_content/course_content.module, line 6

Code

function course_content_context() {
  $node = node_load(arg(1));
  if (isset($node->nid)) {
    return array(
      'object_type' => $node->type,
      'instance' => $node->nid,
    );
  }
}