function uc_termsofservice_form_alter in Ubercart Terms of Service 6
Implements hook_form_alter().
File
- ./
uc_termsofservice.module, line 324 - Ubercart Terms of Service.
Code
function uc_termsofservice_form_alter(&$form, $form_state, $form_id) {
if ($form_id == 'uc_cart_cart_panes_form') {
$form['uc_termsofservice'] = array(
'#type' => 'fieldset',
'#title' => t('Terms of Service settings'),
'#weight' => 98,
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['uc_termsofservice'] += uc_termsofservice_admin_form('cart');
$form['buttons']['#weight'] = 99;
return;
}
if ($form_id == 'uc_cart_checkout_form') {
$form['#validate'][] = 'uc_termsofservice_checkout_form_validate';
return;
}
}