hook_install()

Install the current version of the database schema, and any other setup tasks. The hook will be called the first time a module is installed, and the module’s schema version will be set to the module’s greatest numbered update hook.

The implementation of hook_install() will need to explicitly load the module before any declared functions may be invoked.

Anything added or modified in this function that can be removed during uninstall should be removed with hook_uninstall().

Parameters

No parameters

Return value

none

Usage sample

/*
* Implementation of hook_install().
*/
function videoregistration_install() {
drupal_install_schema(‘videoregistration_type’);
}