function ooe_form_demo_validate

7.x-1.x ooe.module ooe_form_demo_validate(array $form, array &$form_state)

Adapted from form_example_tutorial.inc.

Adapted from form_example_tutorial_6_validate($form, &$form_state)

Delegates to OoeBridge::form_demo_validate($form, &$form_state), which uses a DemoOfForms project.

'Now we add a handler/function to validate the data entered into the .. ' form.

'Notice the name of the function. It is simply the name of the form followed by '_validate'. This is always the name of the default validation function. An alternate list of validation functions could have been provided in $form['#validate'].'

Webel: this is only here to show the "old" Drupal way of doing it without an OOE IFormController.

Parameters

array $form: Drupal form array.

array $form_state: Drupal form state array.

See also

form_example_tutorial_6()

File

./ooe.module, line 401
An educational tutorial module that demonstrates an Object-Oriented bridge between Drupal7 core's contributed module API and a fully Object-Oriented space. OOE stands for Object-Oriented Examples.

Code

function ooe_form_demo_validate(array $form, array &$form_state) {
  ooe()->form_demo_validate($form, $form_state);
}