You are here

function module_test_enable in Drupal 7

Implements hook_enable().

File

modules/simpletest/tests/module_test.install, line 38
Install, update and uninstall functions for the module_test module.

Code

function module_test_enable() {
  $record = array(
    'data' => 'Data inserted in hook_enable()',
  );
  drupal_write_record('module_test', $record);
}