You are here

function uc_termsofservice_checkout_pane in Ubercart Terms of Service 6

Implements hook_checkout_pane().

File

./uc_termsofservice.module, line 80
Ubercart Terms of Service.

Code

function uc_termsofservice_checkout_pane() {
  $node = uc_termsofservice_get_node('checkout');
  $title = t('Terms of Service');
  if (isset($node->title)) {
    $title = $node->title;
  }
  $panes[] = array(
    'id' => 'uc_termsofservice_agreement_checkout',
    'callback' => 'uc_termsofservice_checkout_pane_callback',
    'title' => t('@title', array(
      '@title' => $title,
    )),
    'desc' => t('Please confirm if you agree with our terms and conditions that apply on all our purchases.'),
    'weight' => 6,
    'collapsible' => TRUE,
  );
  return $panes;
}