diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-15 08:48:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-15 08:48:39 +0000 |
commit | 79643e89f0926b01153b9b6f9e80653e7cc4bb6b (patch) | |
tree | 82191fbe4ede22518c514f11b9327c822185f25d /modules | |
parent | db9cfa2b0436a6609876975dbce5673b7b240e84 (diff) | |
download | brdo-79643e89f0926b01153b9b6f9e80653e7cc4bb6b.tar.gz brdo-79643e89f0926b01153b9b6f9e80653e7cc4bb6b.tar.bz2 |
- Patch #632660 by yched: fixed hook_update_N() documentation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.api.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 05ed97d28..082807a0c 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -1973,7 +1973,10 @@ function hook_install() { * to the user. If no message is returned, no message will be presented to the * user. */ -function hook_update_N(&$sandbox = NULL) { +function hook_update_N(&$sandbox) { + // For non-multipass updates, the signature can simply be; + // function hook_update_N() { + // For most updates, the following is sufficient. db_add_field('mytable1', 'newcol', array('type' => 'int', 'not null' => TRUE, 'description' => 'My new integer column.')); |