function simpletest_example_update_7001 in Examples for Developers 7
Adds a body field to the simpletest_example node type.
Related topics
File
- simpletest_example/
simpletest_example.install, line 25 - Install, update and uninstall functions for the simpletest_example module.
Code
function simpletest_example_update_7001() {
node_types_rebuild();
$types = node_type_get_types();
node_add_body_field($types['simpletest_example']);
}