You are here

function data_ui_test_schema in Data 7

Same name and namespace in other branches
  1. 6 data_ui/tests/data_ui_test.install \data_ui_test_schema()

Implements hook_schema().

File

data_ui/tests/data_ui_test.install, line 20
Install, update and uninstall functions for the data_ui_test module.

Code

function data_ui_test_schema() {

  // Pull defaults and expose schema to Drupal.
  drupal_load('module', 'data_ui_test');
  $data_tables = data_ui_test_data_default();
  $schema = array();
  foreach ($data_tables as $name => $table) {
    $schema[$name] = $table->table_schema;
  }
  return $schema;
}