You are here

data_ui_test.install in Data 6

Same filename and directory in other branches
  1. 7 data_ui/tests/data_ui_test.install

File

data_ui/tests/data_ui_test.install
View source
<?php

/**
 * Implementation of hook_install().
 */
function data_ui_test_install() {
  drupal_install_schema('data_ui_test');
}

/**
 * Implementation of hook_schema().
 */
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;
}

Functions

Namesort descending Description
data_ui_test_install Implementation of hook_install().
data_ui_test_schema Implementation of hook_schema().