You are here

function ajax_links_api_menu in Ajaxify Drupal with JQuery Ajax 7

Same name and namespace in other branches
  1. 6 ajax_links_api.module \ajax_links_api_menu()

Implements hook_menu().

File

./ajax_links_api.module, line 35
Make any links or create new links to load content to particular DIV via jQuery Ajax.

Code

function ajax_links_api_menu() {

  // Admin setting.
  $items['admin/config/development/ajax-links-api'] = array(
    'title' => 'Ajax links API',
    'description' => 'Make any links or create new links to load content via ajax',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ajax_links_api_admin',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );

  // Test page.
  $items['ajax-links-api/test'] = array(
    'title' => 'Ajax links API test',
    'page callback' => 'ajax_links_api_test',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}