From 79643e89f0926b01153b9b6f9e80653e7cc4bb6b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Nov 2009 08:48:39 +0000 Subject: - Patch #632660 by yched: fixed hook_update_N() documentation. --- modules/system/system.api.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/system/system.api.php') 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.')); -- cgit v1.2.3