function entity_form_submit

Retrieves, populates, and processes an entity form.

Parameters

EntityInterface $entity: The entity to be created or edited.

$operation: (optional) The operation identifying the form to be submitted.

$form_state: (optional) A keyed array containing the current state of the form.

Return value

A $form_state array already filled with the entity form controller.

1 call to entity_form_submit()
openid_authentication in drupal/core/modules/openid/openid.module
Authenticate a user or attempt registration.

File

drupal/core/includes/entity.inc, line 426
Entity API for handling entities like nodes or users.

Code

function entity_form_submit(EntityInterface $entity, $operation = 'default', &$form_state = array()) {
  $form_state += entity_form_state_defaults($entity, $operation);
  $form_id = entity_form_id($entity, $operation);
  drupal_form_submit($form_id, $form_state);
}