function course_poll_course_handlers in Course 6
Same name and namespace in other branches
- 8.3 modules/course_poll/course_poll.module \course_poll_course_handlers()
- 8.2 modules/course_poll/course_poll.module \course_poll_course_handlers()
- 7.2 modules/course_poll/course_poll.module \course_poll_course_handlers()
- 7 modules/course_poll/course_poll.module \course_poll_course_handlers()
- 3.x modules/course_poll/course_poll.module \course_poll_course_handlers()
Implements hook_course_handlers().
File
- modules/
course_poll/ course_poll.module, line 20
Code
function course_poll_course_handlers() {
return array(
'object' => array(
'poll' => array(
'name' => t('Poll'),
'class' => 'CourseObjectPoll',
'description' => t('A poll to be used in a course workflow.'),
),
),
'context' => array(
'poll' => array(
'callback' => 'course_poll_context',
),
),
);
}