You are here

function ajax_load_init in Ajax Load 6.2

Implementation of hook_menu().

File

./ajax_load.module, line 11
Enable loading of Javascript and CSS data with AJAX loads.

Code

function ajax_load_init() {

  // Add on every page because we can't know in advance if an AJAX method
  // will be called.
  // Include the CTools tools that we need.
  ctools_include('ajax');
  ctools_include('modal');

  // Add CTools' javascript to the page.
  ctools_modal_add_js();
  drupal_add_js(drupal_get_path('module', 'ajax_load') . '/ajax_load.js');
}