You are here

function restful_test_schema_alter in RESTful 7.2

Implements hook_schema_alter().

File

tests/modules/restful_test/restful_test.install, line 27
Install, update and uninstall functions for the entity_test module.

Code

function restful_test_schema_alter(&$schema = array()) {
  $field = array(
    'type' => 'char',
    'length' => 36,
    'not null' => TRUE,
    'default' => '',
    'description' => 'The Universally Unique Identifier.',
  );
  foreach (array(
    'entity_test',
    'restful_test_translatable_entity',
  ) as $table) {
    $schema[$table]['fields']['uuid'] = $field;
  }
}