function simpletest_example_install in Examples for Developers 7
Implements hook_install().
Related topics
File
- simpletest_example/
simpletest_example.install, line 13 - Install, update and uninstall functions for the simpletest_example module.
Code
function simpletest_example_install() {
// Ensure the simpletest_example node type is available.
node_types_rebuild();
$types = node_type_get_types();
node_add_body_field($types['simpletest_example']);
}