You are here

public function CommerceLicenseInterface::formValidate in Commerce License 7

Validates the license form.

Parameters

$form: The license form. Might be embedded in another form through Inline Entity Form, so form['#parents'] needs to be taken into account when fetching values and setting errors.

$form_state: The form state of the complete form. Always use drupal_array_get_nested_value() instead of accessing $form_state['values'] directly.

1 method overrides CommerceLicenseInterface::formValidate()
CommerceLicenseBase::formValidate in includes/plugins/license_type/base.inc
Implements CommerceLicenseInterface::formValidate().

File

includes/plugins/license_type/base.inc, line 76
Abstract and interface plugin implementation.

Class

CommerceLicenseInterface
Ensures basic required behavior for a license.

Code

public function formValidate($form, &$form_state);