You are here

function ajax_comments_menu in AJAX Comments 6

Same name and namespace in other branches
  1. 5 ajax_comments.module \ajax_comments_menu()
  2. 7 ajax_comments.module \ajax_comments_menu()

Implementation of hook_menu().

File

./ajax_comments.module, line 40
Implements AJAX handling for Drupal comment forms.

Code

function ajax_comments_menu() {
  $items['admin/settings/ajax_comments'] = array(
    'title' => 'AJAX comments',
    'description' => 'AJAXifies comments on site.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ajax_comments_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ajax_comments.admin.inc',
  );
  $items['ajax_comments/js'] = array(
    'page callback' => 'ajax_comments_js',
    'access arguments' => array(
      'access content',
    ),
    'file' => 'ajax_comments.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['ajax_comments/js_reload/%'] = array(
    'page callback' => 'ajax_comments_js_reload_form',
    'page arguments' => array(
      2,
      3,
      4,
    ),
    'access arguments' => array(
      'access content',
    ),
    'file' => 'ajax_comments.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['ajax_comments/js_load_thread/%'] = array(
    'page callback' => 'ajax_comments_js_load_thread',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'access content',
    ),
    'file' => 'ajax_comments.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['ajax_comments/instant_delete/%'] = array(
    'page callback' => 'ajax_comments_instant_delete',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'administer comments',
    ),
    'file' => 'ajax_comments.pages.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}