You are here

function course_course_handlers in Course 6

Same name and namespace in other branches
  1. 8.3 course.module \course_course_handlers()
  2. 8.2 course.module \course_course_handlers()
  3. 7.2 course.module \course_course_handlers()
  4. 7 course.module \course_course_handlers()
  5. 3.x course.module \course_course_handlers()

Implements hook_course_handlers().

See also

course_menu()

course_settings_overview()

File

./course.module, line 261
course.module Core functionality for Courses.

Code

function course_course_handlers() {
  $outline = 'includes/course.outline.inc';
  $settings = 'includes/course.settings.inc';
  return array(
    'outline' => array(
      'course' => array(
        'name' => t('Course'),
        'description' => t('Stock outline display.'),
        'callback' => 'course_outline_list',
        'file' => $outline,
      ),
      'none' => array(
        'name' => t('None'),
        'description' => t('No outline provided (placeholder course).'),
      ),
    ),
    'context' => array(
      'node' => array(
        'callback' => 'course_context',
      ),
    ),
    'settings' => array(
      'appearance' => array(
        'name' => t('Appearance'),
        'description' => t('Configure the course appearance, including outline style, disabling regions, and <em>enroll</em> and <em>take course</em> links.'),
        'callback' => 'course_settings_appearance_form',
        'file' => $settings,
      ),
      'objects' => array(
        'name' => t('Course objects'),
        'description' => t('Course object settings.'),
        'callback' => 'course_settings_objects_form',
        'file' => $settings,
      ),
      'user_types' => array(
        'name' => t('User types'),
        'description' => t('Configure course user types.'),
        'callback' => 'course_user_type_settings_form',
        'file' => $settings,
      ),
    ),
  );
}