summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJennifer Hodgdon <yahgrp@poplarware.com>2012-08-29 11:05:29 -0700
committerJennifer Hodgdon <yahgrp@poplarware.com>2012-08-29 11:05:29 -0700
commitbed1034d36f571be755831931d7055a1b21e823c (patch)
tree826a24969c81418d75e87e90fde583b8d32c5563
parent634b15e23d770a505df1b2932e1b1e7badc27a10 (diff)
downloadbrdo-bed1034d36f571be755831931d7055a1b21e823c.tar.gz
brdo-bed1034d36f571be755831931d7055a1b21e823c.tar.bz2
Issue #794192 by kim.pepper: add note to hook_update_N docs about calling functions from modules
-rw-r--r--modules/system/system.api.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 50c4be538..4f5c7880c 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -3287,6 +3287,10 @@ function hook_install() {
* the same directory as mymodule.module. Drupal core's updates are implemented
* using the system module as a name and stored in database/updates.inc.
*
+ * Not all module functions are available from within a hook_update_N() function.
+ * In order to call a function from your mymodule.module or an include file,
+ * you need to explicitly load that file first.
+ *
* If your update task is potentially time-consuming, you'll need to implement a
* multipass update to avoid PHP timeouts. Multipass updates use the $sandbox
* parameter provided by the batch API (normally, $context['sandbox']) to store