uc_payment_pack.variable.inc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * @file
  4. * Variable module hook implementations.
  5. */
  6. /**
  7. * Implements hook_variable_group_info().
  8. */
  9. function uc_payment_pack_variable_group_info() {
  10. $groups['uc_payment_pack'] = array(
  11. 'title' => t('Ubercart payment pack settings'),
  12. 'access' => 'administer store',
  13. 'path' => array('admin/store/settings/payment/method'),
  14. );
  15. return $groups;
  16. }
  17. /**
  18. * Implements hook_variable_info().
  19. */
  20. function uc_payment_pack_variable_info($options) {
  21. $variables['uc_cod_policy'] = array(
  22. 'type' => 'text',
  23. 'title' => t('COD policy message', array(), $options),
  24. 'description' => t('Policy message for Cash On Delivery', array(), $options),
  25. 'group' => 'uc_payment_pack',
  26. 'default' => t('Full payment is expected upon delivery or prior to pick-up.', array(), $options),
  27. );
  28. $variables['uc_check_policy'] = array(
  29. 'type' => 'text',
  30. 'title' => t('Check payment policy', array(), $options),
  31. 'description' => t('Instructions for customers on the checkout page.', array(), $options),
  32. 'group' => 'uc_payment_pack',
  33. 'default' => t('Personal and business checks will be held for up to 10 business days to ensure payment clears before an order is shipped.', array(), $options),
  34. );
  35. return $variables;
  36. }