uc_quote.variable.inc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * @file
  4. * Variable module hook implementations.
  5. */
  6. /**
  7. * Implements hook_variable_group_info().
  8. */
  9. function uc_quote_variable_group_info() {
  10. $groups['uc_quote'] = array(
  11. 'title' => t('Ubercart shipping quote settings'),
  12. 'access' => 'administer store',
  13. 'path' => array('admin/store/settings/quotes'),
  14. );
  15. return $groups;
  16. }
  17. /**
  18. * Implements hook_variable_info().
  19. */
  20. function uc_quote_variable_info($options) {
  21. $variables['uc_quote_err_msg'] = array(
  22. 'type' => 'text',
  23. 'title' => t('Shipping quote error message', array(), $options),
  24. 'description' => t('The error message shown to a user when a problem is encountered while generating a shipping quote.', array(), $options),
  25. 'group' => 'uc_quote',
  26. 'default' => t("There were problems getting a shipping quote. Please verify the delivery and product information and try again.\nIf this does not resolve the issue, please call in to complete your order.", array(), $options),
  27. );
  28. $variables['uc_quote_pane_description'] = array(
  29. 'type' => 'text',
  30. 'title' => t('Shipping quote pane description', array(), $options),
  31. 'description' => t('Message to indicate to users that a shipping quote can be updated automatically on address change, or manually by pressing a button.', array(), $options),
  32. 'group' => 'uc_quote',
  33. 'default' => t('Shipping quotes are generated automatically when you enter your address and may be updated manually with the button below.', array(), $options),
  34. );
  35. return $variables;
  36. }