You are here

function course_poll_course_handlers in Course 6

Same name and namespace in other branches
  1. 8.3 modules/course_poll/course_poll.module \course_poll_course_handlers()
  2. 8.2 modules/course_poll/course_poll.module \course_poll_course_handlers()
  3. 7.2 modules/course_poll/course_poll.module \course_poll_course_handlers()
  4. 7 modules/course_poll/course_poll.module \course_poll_course_handlers()
  5. 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',
      ),
    ),
  );
}