Skip to content

Commit

Permalink
Issue #1312844 by sven.lauer: Fixed hook_schema() doc should state th…
Browse files Browse the repository at this point in the history
…at database tables are auto-created.
  • Loading branch information
webchick committed Oct 25, 2011
1 parent 29f07d6 commit c545f6e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions modules/system/system.api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2922,12 +2922,15 @@ function hook_requirements($phase) {
* case, it cannot rely on the .module file being loaded or hooks being known.
* If the .module file is needed, it may be loaded with drupal_load().
*
* By implementing hook_schema() and specifying the tables your module
* declares, you can easily create and drop these tables on all
* supported database engines. You don't have to deal with the
* different SQL dialects for table creation and alteration of the
* supported database engines.
*
* The tables declared by this hook will be automatically created when
* the module is first enabled, and removed when the module is uninstalled.
* This happens before hook_install() is invoked, and after hook_uninstall()
* is invoked, respectively.
*
* By declaring the tables used by your module via an implementation of
* hook_schema(), these tables will be available on all supported database
* engines. You don't have to deal with the different SQL dialects for table
* creation and alteration of the supported database engines *
* See the Schema API Handbook at http://drupal.org/node/146843 for
* details on schema definition structures.
*
Expand Down

0 comments on commit c545f6e

Please sign in to comment.