You are here

function module_test_install in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/module_test/module_test.install \module_test_install()

Implements hook_install().

File

core/modules/system/tests/modules/module_test/module_test.install, line 30
Install, update and uninstall functions for the module_test module.

Code

function module_test_install() {
  $schema = drupal_get_module_schema('module_test', 'module_test');
  db_insert('module_test')
    ->fields(array(
    'data' => $schema['fields']['data']['type'],
  ))
    ->execute();
}