function uc_addresses_test_schema_alter in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 tests/uc_addresses_test.install \uc_addresses_test_schema_alter()
Implements hook_schema_alter().
Return value
void
File
- tests/
uc_addresses_test.install, line 20 - Installation file for Ubercart Addresses testing module.
Code
function uc_addresses_test_schema_alter(&$schema) {
$tables = _uc_addresses_test_schema_tables();
$fields = _uc_addresses_test_schema_fields();
foreach ($tables as $table) {
foreach ($fields as $fieldname => $field) {
if (!_uc_addresses_test_in_pane($table['prefix'], $field)) {
continue;
}
$tablename = $table['table'];
$tablefieldname = $table['prefix'] . $fieldname;
$schema[$tablename]['fields'][$tablefieldname] = $field;
}
}
}