You are here

function ajax_preprocess_page in Ajax 6

Implementation of hook_preprocess_hook().

Parameters

variables Assoc:

Return value

Bool

File

./ajax.module, line 25

Code

function ajax_preprocess_page(&$variables) {
  $p = drupal_get_path('module', 'ajax');
  drupal_add_js($p . '/jquery/jquery.a_form.packed.js', 'module');
  drupal_add_js($p . '/ajax.js', 'module');
  $scripts = drupal_add_js();
  $variables['scripts'] = drupal_get_js('header', $scripts);
  return TRUE;
}