You are here

function agreement_form_validate in Agreement 6.2

Same name and namespace in other branches
  1. 6 agreement.module \agreement_form_validate()
  2. 7.2 agreement.pages.inc \agreement_form_validate()

Validation handler for agreement_form()

See also

agreement_form()

agreement_form_submit()

File

./agreement.module, line 420
agreement.module - Agreement module code

Code

function agreement_form_validate($form, &$form_state) {
  if (!$form_state['values']['agree']) {
    form_set_error('agree', check_plain(variable_get('agreement_message_failure', AGREEMENT_MESSAGE_FAILURE)));
  }
}