install.php

Version 1.14.2.7 (checked in on 2009/05/20 at 19:57:17 by quicksketch)

Documentation for the installation and update system.

The update system is used by modules to provide database updates which are run with update.php.

Implementations of these hooks should be placed in a mymodule.install file in the same directory as mymodule.module.

Functions

NameDescription
hook_disablePerform necessary actions before module is disabled.
hook_enablePerform necessary actions after module is enabled.
hook_installInstall the current version of the database schema, and any other setup tasks.
hook_requirementsCheck installation requirements and do status reporting.
hook_schemaDefine the current version of the database schema.
hook_uninstallRemove any tables or variables that the module sets.
hook_update_last_removedReturn a number which is no longer available as hook_update_N().
hook_update_NPerform a single update.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.