Commit 79643e89 authored by Dries's avatar Dries
Browse files

- Patch #632660 by yched: fixed hook_update_N() documentation.

parent db9cfa2b
......@@ -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.'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment