'uc_addresses', 'prefix' => '', ), array( 'table' => 'uc_orders', 'prefix' => 'delivery_', ), array( 'table' => 'uc_orders', 'prefix' => 'billing_', ), ); } /** * Defines which schema fields need to be added * to the uc_addresses and uc_orders table. * * Some of the fields are set to not display by default. * These fields should be shown in forms, but it's value * should not be shown separately. The idea is that these * fields are added to the address format, which can be set * at: * admin/store/settings/countries/uc_addresses_formats * * @return array */ function _uc_addresses_node_schema_fields() { return array( 'email' => array( // Schema 'description' => t("Person's e-mail."), 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '', // UC Addresses 'title' => t('E-mail'), 'handler' => 'UcAddressesTextFieldHandler', 'display_settings' => array( 'default' => TRUE, 'register' => TRUE, 'address_form' => TRUE, 'checkout_form' => TRUE, 'order_form' => TRUE, ), 'compare' => TRUE, ), 'nid' => array( // Schema 'description' => t("The Address's {node}.nid."), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, // UC Addresses 'title' => t('Node ID'), 'handler' => 'UcAddressesHiddenFieldHandler', 'display_settings' => array( 'default' => FALSE, 'register' => FALSE, 'address_form' => FALSE, 'checkout_form' => FALSE, 'order_form' => FALSE, ), 'compare' => FALSE, ), 'vid' => array( // Schema 'description' => t("The Address's {node_revisions}.vid."), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, // UC Addresses 'title' => t('Version ID'), 'handler' => 'UcAddressesHiddenFieldHandler', 'display_settings' => array( 'default' => FALSE, 'register' => FALSE, 'address_form' => FALSE, 'checkout_form' => FALSE, 'order_form' => FALSE, ), 'compare' => FALSE, ), ); }