function payment_form_process_method_submit in Payment 7
Implements form submit callback for a payment_method element.
1 string reference to 'payment_form_process_method_submit'
- payment_form_process_method in ./
payment.ui.inc - Implements form process callback for a payment_method element.
File
- ./
payment.ui.inc, line 1022 - The Payment user interface.
Code
function payment_form_process_method_submit(array $form, array &$form_state) {
$parents = $form_state['triggering_element'];
array_pop($parents);
$pmid = drupal_array_get_nested_value($form_state['values'], array_merge($parents, array(
'pmid',
)));
unset($pmid);
$form_state['payment']->method = NULL;
$form_state['rebuild'] = TRUE;
}