You are here

function course_webform_context in Course 6

Course context handler callback.

1 string reference to 'course_webform_context'
course_webform_course_handlers in modules/course_webform/course_webform.module
Implements hook_course_handlers().

File

modules/course_webform/course_webform.module, line 6

Code

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