You are here

function _uc_addresses_test_schema_tables in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 tests/uc_addresses_test.install \_uc_addresses_test_schema_tables()

Defines which schema tables needs to be altered.

A prefix is also defined because in case of the uc_orders table two fields needs to be added:

  • one for delivery
  • and one for billing.

Return value

array The schema's that needs to be altered.

3 calls to _uc_addresses_test_schema_tables()
uc_addresses_test_install in tests/uc_addresses_test.install
Implements hook_install().
uc_addresses_test_schema_alter in tests/uc_addresses_test.install
Implements hook_schema_alter().
uc_addresses_test_uninstall in tests/uc_addresses_test.install
Implements hook_uninstall().

File

tests/uc_addresses_test.install, line 105
Installation file for Ubercart Addresses testing module.

Code

function _uc_addresses_test_schema_tables() {
  return array(
    array(
      'table' => 'uc_addresses',
      'prefix' => '',
    ),
    array(
      'table' => 'uc_orders',
      'prefix' => 'delivery_',
    ),
    array(
      'table' => 'uc_orders',
      'prefix' => 'billing_',
    ),
  );
}