You are here

function scale_menu in Quiz 7

Same name and namespace in other branches
  1. 8.6 question_types/quiz_scale/quiz_scale.module \scale_menu()
  2. 8.4 question_types/scale/scale.module \scale_menu()
  3. 8.5 question_types/quiz_scale/quiz_scale.module \scale_menu()
  4. 6.6 question_types/scale/scale.module \scale_menu()
  5. 6.4 question_types/scale/scale.module \scale_menu()
  6. 7.6 question_types/scale/scale.module \scale_menu()
  7. 7.4 question_types/scale/scale.module \scale_menu()
  8. 7.5 question_types/scale/scale.module \scale_menu()

Implements hook_menu().

File

question_types/scale/scale.module, line 27
The main file for scale.

Code

function scale_menu() {
  $items['scale/collection/manage'] = array(
    'title' => 'Manage your preset collections',
    'access callback' => 'user_access',
    'access arguments' => array(
      'create quiz',
    ),
    'type' => MENU_SUGGESTED_ITEM,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'scale_manage_collection_form',
    ),
  );
  return $items;
}