function module_test_install in Drupal 7
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/module_test/module_test.install \module_test_install()
- 9 core/modules/system/tests/modules/module_test/module_test.install \module_test_install()
- 10 core/modules/system/tests/modules/module_test/module_test.install \module_test_install()
Implements hook_install().
File
- modules/
simpletest/ tests/ module_test.install, line 30 - Install, update and uninstall functions for the module_test module.
Code
function module_test_install() {
$record = array(
'data' => 'Data inserted in hook_install()',
);
drupal_write_record('module_test', $record);
}