You are here

function hook_domain_entity_widget_multiple_values_form_validate_alter in Domain Access Entity 7

Called when the field widget is submit for saving and domain entity form validate function manipulate the items before saving.

Parameters

array $items: (alterable) The domain field value that is gonna be saved.

$form_state: The form state of the form that hold the field domain_entity.

$form: The form that hold the field domain_entity.

1 function implements hook_domain_entity_widget_multiple_values_form_validate_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

domain_entity_source_domain_entity_widget_multiple_values_form_validate_alter in domain_entity_source/domain_entity_source.module
Implements hook_domain_entity_widget_multiple_values_form_validate_alter().
1 invocation of hook_domain_entity_widget_multiple_values_form_validate_alter()
domain_entity_widget_multiple_values_form_validate in ./domain_entity.module
Widget form validate.

File

./domain_entity.api.php, line 75
Hooks provided by the domain_entity module.

Code

function hook_domain_entity_widget_multiple_values_form_validate_alter(&$items, $form_state, $form) {
  $domain_entity_field_name = $form_state['domain_entity_field_name'];
  $form_field_values = isset($form_state['values'][$form_state['domain_entity_field_name']]) ? $form_state['values'][$form_state['domain_entity_field_name']] : NULL;
}