You are here

function ajax_is_enabled in Ajax 6

Checks if form is ajax-enabled

Parameters

$form Assoc:

Return value

Bool

1 call to ajax_is_enabled()
ajax_form_alter in ./ajax.module
hook_form_alter

File

./ajax.module, line 83

Code

function ajax_is_enabled($form) {
  return array_key_exists('#ajax', $form) && is_array($form['#ajax']) && array_key_exists('enabled', $form['#ajax']) && $form['#ajax']['enabled'] === TRUE;
}