You are here

function currency_test_schema in Currency 8.3

@file Installation and uninstallation functionality.

File

modules/currency_test/currency_test.install, line 7
Installation and uninstallation functionality.

Code

function currency_test_schema() {
  $schema['currency_test'] = array(
    'fields' => array(
      'currency_code' => array(
        'type' => 'varchar',
        'length' => '3',
      ),
    ),
  );
  $fields = array(
    'amount_currency_code_field_option',
    'amount_currency_code_definition',
    'amount_currency_code_field_definition',
    'amount_currency_code_field_table_definition',
    'amount_currency_undefined',
  );
  foreach ($fields as $field) {
    $schema['currency_test']['fields'][$field] = array(
      'type' => 'varchar',
      'length' => 255,
    );
  }
  return $schema;
}