function module_test_enable

Implements hook_enable().

File

modules/simpletest/tests/module_test.install, line 38

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.