You are here

function jeditable_menu in jEditable inline content editing 7

Same name and namespace in other branches
  1. 6.2 jeditable.module \jeditable_menu()
  2. 6 jeditable.module \jeditable_menu()

Implements hook_menu().

File

./jeditable.module, line 16
jeditable.module TODO: Provides integration between Drupal and the jEditable jquery plugin @todo: Datepicker support @todo: Ajax upload support @todo: Radioboxes/checkboxes support @todo: add required handler for date @todo: add compatibility for…

Code

function jeditable_menu() {
  $items['jeditable/ajax/save'] = array(
    'title' => 'Save field',
    'page callback' => '_jeditable_ajax_save',
    'access arguments' => array(
      'use jeditable',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['jeditable/ajax/load'] = array(
    'title' => 'Load field',
    'page callback' => '_jeditable_ajax_load',
    'page arguments' => array(
      3,
      4,
      5,
    ),
    'access arguments' => array(
      'use jeditable',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/content/jeditable'] = array(
    'title' => 'jEditable',
    'description' => 'Configure the jEditable module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'jeditable_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}