You are here

function ajax_ui_form_alter in Ajax 6

hook_form_alter

Parameters

$form Assoc:

$form_state Assoc:

$form_id String:

Return value

Bool

File

ajax_ui/ajax_ui.module, line 324

Code

function ajax_ui_form_alter(&$form, $form_state, $form_id) {

  //watchdog('AJAX Forms', 'Form ID: %form_id', array('%form_id'=>$form_id));
  if (ajax_ui_is_type($form, $form_id, $options)) {
    $form['#ajax'] = $options;
  }
  return TRUE;
}