simpletest_example.install

Install, update and uninstall functions for the simpletest_example module.

File

simpletest_example/simpletest_example.install

View source
<?php


/**
 * @file
 * Install, update and uninstall functions for the simpletest_example module.
 */

/**
 * Implements hook_install().
 *
 * @ingroup simpletest_example
 */
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']);
}

/**
 * Adds a body field to the simpletest_example node type.
 *
 * @ingroup simpletest_example
 */
function simpletest_example_update_7001() {
    node_types_rebuild();
    $types = node_type_get_types();
    node_add_body_field($types['simpletest_example']);
}

Functions

Title Deprecated Summary
simpletest_example_install Implements hook_install().
simpletest_example_update_7001 Adds a body field to the simpletest_example node type.