You are here

function fapi_validation_form_alter in Form API Validation 6

Implementation of hook_form_alter

File

./fapi_validation.module, line 6

Code

function fapi_validation_form_alter(&$form, $form_state, $form_id) {
  if (!isset($form['#validate']) || !is_array($form['#validate'])) {
    $form['#validate'] = array();
  }
  $form['#validate'] = array_merge(array(
    'fapi_validation_form_validate',
  ), $form['#validate']);
}