function mollie_payment_method_configuration_validate in Mollie Payment 7
Same name and namespace in other branches
- 7.2 mollie_payment.module \mollie_payment_method_configuration_validate()
Validation callback for payment method configuration form elements callback.
Parameters
array $form: A Drupal form array.
array $form_state: The current state of the form.
File
- ./
mollie_payment.module, line 524 - Provides Mollie integration for the Payment platform.
Code
function mollie_payment_method_configuration_validate(array $form, array &$form_state) {
$values = drupal_array_get_nested_value($form_state['values'], $form['#parents']);
$form_state['payment_method']->controller_data['mollie_api_key'] = $values['mollie_api_key'];
$form_state['payment_method']->controller_data['mollie_test_api_key'] = $values['mollie_test_api_key'];
$form_state['payment_method']->controller_data['webhook_base_url'] = $values['webhook_base_url'];
$form_state['payment_method']->controller_data['advanced'] = $values['advanced'];
$form_state['payment_method']->controller_data['test_mode'] = $values['test_mode'];
}