You are here

function data_ui_test_schema in Data 6

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

Implementation of hook_schema().

File

data_ui/tests/data_ui_test.install, line 13

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;
}