You are here

function course_signup_menu in Course 7.2

Same name and namespace in other branches
  1. 6 modules/course_signup/course_signup.module \course_signup_menu()
  2. 7 modules/course_signup/course_signup.module \course_signup_menu()

Implements hook_menu().

File

modules/course_signup/course_signup.module, line 40

Code

function course_signup_menu() {
  $items = array();
  $items['admin/course/signup'] = array(
    'access arguments' => array(
      'administer course',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'course_signup_admin',
    ),
    'type' => MENU_LOCAL_TASK,
    'title' => 'Signup',
  );
  if (module_exists('signup_sms')) {
    $items[variable_get('course_signup_code_form_path', 'code')] = [
      'title' => 'Confirmation form',
      'page callback' => 'drupal_get_form',
      'page arguments' => [
        'course_signup_confirmation_form',
      ],
      'access callback' => 'course_signup_code_form_access',
      'type' => MENU_CALLBACK,
    ];
  }
  return $items;
}