From bed1034d36f571be755831931d7055a1b21e823c Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon <yahgrp@poplarware.com> Date: Wed, 29 Aug 2012 11:05:29 -0700 Subject: [PATCH] Issue #794192 by kim.pepper: add note to hook_update_N docs about calling functions from modules --- modules/system/system.api.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 50c4be538f41..4f5c7880ca29 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 -- GitLab