function ooe_form_admin_validate

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

Implements validation of the admin form.

Delegates to OoeBridge::form_admin_validate($form, &$form_state), which currently uses an ICurrentPosts project.

Adapted from the Current Posts example: Validating the data

'The validation function works much like a hook, with the form ID taking the place of the module name. .. Don't confuse this with hook_validate(), which is part of the main hook system.'

'Notice the $form_state array variable, an argument here and also for our form function. $form_state is passed by reference along through each stage of form processing to capture information about the form's workflow and its current state. Incoming $_POST data is first sanitized and checked against the structure of the form before being handed off to validate and submit handlers. The array's values key is the default key for storing this data. See drupal_build_form() for a list of $form_state keys.'


array $form: A structured array containing the elements and properties of the form.

array $form_state: An array that stores information about the form's current state during processing.


./ooe.module, line 244
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.


function ooe_form_admin_validate(array $form, array &$form_state) {
  return ooe()->form_admin_validate($form, $form_state);