You are here

function uc_addresses_test_uc_addresses_fields in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 tests/uc_addresses_test.module \uc_addresses_test_uc_addresses_fields()

Implements hook_uc_addresses_fields().

File

tests/uc_addresses_test.module, line 33
Testing module for Ubercart Addresses functionality.

Code

function uc_addresses_test_uc_addresses_fields() {
  return array(
    'billing_extra1' => array(
      'title' => t('Billing Extra Field'),
      'handler' => 'UcAddressesTestTextFieldHandler',
      'display_settings' => array(
        'default' => TRUE,
      ),
      'compare' => TRUE,
      'address_type' => 'billing',
    ),
    'shipping_extra2' => array(
      'title' => t('Delivery Extra Field'),
      'handler' => 'UcAddressesTestTextFieldHandler',
      'display_settings' => array(
        'default' => TRUE,
      ),
      'compare' => TRUE,
      'address_type' => 'shipping',
    ),
  );
}