public function sep__protocol_widget::submit

3.x sep__protocol_widget.inc public sep__protocol_widget::submit($form, &$form_state, $entity_type, $entity, $langcode, $delta)

Performs extra commands when the entity form is submitted.

Drupal typically does not provide a submit hook for fields. The TripalField provides one to allow for behind-the-scenes actions to occur. This function should never be used for updates, deletes or inserts for the Chado table associated with the field. Rather, the storage backend should be allowed to handle inserts, updates deletes. However, it is permissible to perform inserts, updates or deletions within Chado using this function. Those operations can be performed if needed but on other tables not directly associated with the field.

An example is the chado.feature_synonym table. The chado_linker__synonym field allows the user to provide a brand new synonynm and it must add it to the chado.synonym table prior to the record in the chado.feature_synonym table. This insert occurs in the widgetFormSubmit function.

Parameters

$form: The submitted form array.

$form_state .: The form state array.

$entity_type: The type of $entity.

$entity: The entity for the operation.

$langcode: The language associated with $items.

$delta:

Overrides TripalFieldWidget::submit

File

tripal_chado/includes/TripalFields/sep__protocol/sep__protocol_widget.inc, line 150

Class

sep__protocol_widget
@class Purpose:

Code

public function submit($form, &$form_state, $entity_type, $entity, $langcode, $delta) {
}