uc_store.variable.inc 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. /**
  3. * @file
  4. * Variable module hook implementations.
  5. */
  6. /**
  7. * Implements hook_variable_group_info().
  8. */
  9. function uc_store_variable_group_info() {
  10. $groups['uc_store'] = array(
  11. 'title' => t('Ubercart store settings'),
  12. 'access' => 'administer store',
  13. );
  14. return $groups;
  15. }
  16. /**
  17. * Implements hook_variable_info().
  18. */
  19. function uc_store_variable_info($options) {
  20. $variables['uc_field_first_name'] = array(
  21. 'type' => 'string',
  22. 'title' => t('First name', array(), $options),
  23. 'description' => t('Ubercart address field label.', array(), $options),
  24. 'group' => 'uc_store',
  25. 'default' => t('First name', array(), $options),
  26. );
  27. $variables['uc_field_last_name'] = array(
  28. 'type' => 'string',
  29. 'title' => t('Last name', array(), $options),
  30. 'description' => t('Ubercart address field label.', array(), $options),
  31. 'group' => 'uc_store',
  32. 'default' => t('Last name', array(), $options),
  33. );
  34. $variables['uc_field_company'] = array(
  35. 'type' => 'string',
  36. 'title' => t('Company', array(), $options),
  37. 'description' => t('Ubercart address field label.', array(), $options),
  38. 'group' => 'uc_store',
  39. 'default' => t('Company', array(), $options),
  40. );
  41. $variables['uc_field_street1'] = array(
  42. 'type' => 'string',
  43. 'title' => t('Street address 1', array(), $options),
  44. 'description' => t('Ubercart address field label.', array(), $options),
  45. 'group' => 'uc_store',
  46. 'default' => t('Street address', array(), $options),
  47. );
  48. $variables['uc_field_street2'] = array(
  49. 'type' => 'string',
  50. 'title' => t('Street address 2', array(), $options),
  51. 'description' => t('Ubercart address field label.', array(), $options),
  52. 'group' => 'uc_store',
  53. 'default' => '',
  54. );
  55. $variables['uc_field_city'] = array(
  56. 'type' => 'string',
  57. 'title' => t('City', array(), $options),
  58. 'description' => t('Ubercart address field label.', array(), $options),
  59. 'group' => 'uc_store',
  60. 'default' => t('Country', array(), $options),
  61. );
  62. $variables['uc_field_zone'] = array(
  63. 'type' => 'string',
  64. 'title' => t('State/Province', array(), $options),
  65. 'description' => t('Ubercart address field label.', array(), $options),
  66. 'group' => 'uc_store',
  67. 'default' => t('State/Province', array(), $options),
  68. );
  69. $variables['uc_field_postal_code'] = array(
  70. 'type' => 'string',
  71. 'title' => t('Postal code', array(), $options),
  72. 'description' => t('Ubercart address field label.', array(), $options),
  73. 'group' => 'uc_store',
  74. 'default' => t('Postal code', array(), $options),
  75. );
  76. $variables['uc_field_country'] = array(
  77. 'type' => 'string',
  78. 'title' => t('Country', array(), $options),
  79. 'description' => t('Ubercart address field label.', array(), $options),
  80. 'group' => 'uc_store',
  81. 'default' => t('Country', array(), $options),
  82. );
  83. $variables['uc_field_phone'] = array(
  84. 'type' => 'string',
  85. 'title' => t('Phone number', array(), $options),
  86. 'description' => t('Ubercart address field label.', array(), $options),
  87. 'group' => 'uc_store',
  88. 'default' => t('Phone number', array(), $options),
  89. );
  90. return $variables;
  91. }