diff --git a/commerce_payment_visanet_peru.module b/commerce_payment_visanet_peru.module index 20f2c2b..b16385a 100644 --- a/commerce_payment_visanet_peru.module +++ b/commerce_payment_visanet_peru.module @@ -63,6 +63,14 @@ function commerce_payment_visanet_peru_global_settings_form() { '#description' => t('The URL you asked VisaNet Peru to set as your receive callback.'), ); + $form['commerce_payment_visanet_peru_global_terms_link'] = array( + '#type' => 'textfield', + '#title' => t('Terms and conditions'), + '#default_value' => variable_get('commerce_payment_visanet_peru_global_terms_link', ''), + '#description' => t('The URL of your terms and conditions.'), + '#required' => TRUE, + ); + return system_settings_form($form); } @@ -212,10 +220,10 @@ function commerce_payment_visanet_peru_submit_form($payment_method, $pane_values 'accept_terms' => '', ); - $visanet_terms_link = variable_get('commerce_payment_visanet_peru_global_terms_link', FALSE); + $visanet_terms_link = variable_get('commerce_payment_visanet_peru_global_terms_link', ''); $form['accept_terms'] = array( '#type' => 'checkbox', - '#title' => t('I accept the terms and conditions.', array('@url' => url($visanet_terms_link))), + '#title' => t('I accept the terms and conditions.', array('@url' => url($visanet_terms_link))), '#description' => t('Please check the box to accept terms and conditions.'), '#default_value' => $pane_values['accept_terms'], );