You are here

function select2_menu in Select 2 7

Implements hook_menu().

File

./select2.module, line 27
Main file for Select2 module.

Code

function select2_menu() {
  $items['admin/config/user-interface/select2_settings'] = array(
    'title' => 'Select2',
    'description' => 'Select2 module settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'select2_settings_form',
    ),
    'access arguments' => array(
      'administer select2',
    ),
    'file' => 'pages/select2.admin.inc',
  );
  $items['select2/ajax/get_settings'] = array(
    'title' => 'Select2',
    'page callback' => 'select2_get_settings_ajax',
    'delivery callback' => 'ajax_deliver',
    'access callback' => TRUE,
    'description' => 'Ajax callback for getting select2 settings.',
    'type' => MENU_CALLBACK,
    'file' => 'includes/ajax.inc',
  );
  return $items;
}