function PartyDefaultDataSetUIAdd::action_form_validate in Party 8.2
Same name and namespace in other branches
- 7 includes/party.data_ui.inc \PartyDefaultDataSetUIAdd::action_form_validate()
Form validation for the action form.
Overrides PartyDataSetActionInterface::action_form_validate
1 method overrides PartyDefaultDataSetUIAdd::action_form_validate()
- PartyUserDataSetUIAdd::action_form_validate in modules/
party_user/ includes/ party_user.data_ui.inc - Form validation for the action form.
File
- includes/
party.data_ui.inc, line 117 - Provides default classes for UI actions on data sets.
Class
- PartyDefaultDataSetUIAdd
- The 'add' action: attach a new entity.
Code
function action_form_validate($form, &$form_state) {
// Get the original form parameters.
list($party, $data_set, $action, $eid) = $form_state['build_info']['args'];
field_attach_form_validate($data_set['entity type'], $form_state['#attached_entity'], $form, $form_state);
}