You are here

function payment_form_embedded_submit in Payment 7

Implements form submit callback for payment_form_embedded().

1 string reference to 'payment_form_embedded_submit'
payment_form_embedded in ./payment.ui.inc
Builds common elements for a payment add/edit form.

File

./payment.ui.inc, line 134
The Payment user interface.

Code

function payment_form_embedded_submit(array $form, array &$form_state) {

  // The payment status element may be unavailable.
  if (isset($form_state['values']['payment_status'])) {

    /** @var Payment $payment */
    $payment = $form_state['payment'];
    $payment
      ->setStatus(new PaymentStatusItem($form_state['values']['payment_status']));
  }
}