You are here

function course_menu in Course 8.3

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

Implements hook_menu().

File

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

Code

function course_menu() {
  $items['node/%course/object/%course_object/%ctools_js/nav'] = array(
    'page callback' => 'course_ajaj_fulfullment_check',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'page arguments' => array(
      1,
      3,
      5,
    ),
  );
  if (Drupal::moduleHandler()
    ->moduleExists('devel_generate')) {
    $items['admin/config/development/generate/course'] = array(
      'title' => 'Generate course',
      'description' => 'Generate a given number of courses and object.',
      'access arguments' => array(
        'administer course',
      ),
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'course_generate_form',
      ),
      'file' => 'course.devel.inc',
    );
  }
  return $items;
}