summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-15 02:28:22 -0400
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-15 02:28:22 -0400
commite3de4550acb794e7b3589576d1e734bc4e05b8af (patch)
tree8e68527fc9d3c8223348d328048bf92fd6e49a01 /modules/system/system.api.php
parenteeec65a2fca8524f34a955b429cab1a4d1fd8397 (diff)
downloadbrdo-e3de4550acb794e7b3589576d1e734bc4e05b8af.tar.gz
brdo-e3de4550acb794e7b3589576d1e734bc4e05b8af.tar.bz2
Issue #1029606 follow-up by catch, David_Rothstein: Fixed Regression: Not loading the .module file causes a fatal error when uninstalling some modules (as does loading it).
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 584d4a8d7..f32433c08 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -3267,6 +3267,14 @@ function hook_update_last_removed() {
* module's database tables are removed, allowing your module to query its own
* tables during this routine.
*
+ * When hook_uninstall() is called, your module will already be disabled, so
+ * its .module file will not be automatically included. If you need to call API
+ * functions from your .module file in this hook, use drupal_load() to make
+ * them available. (Keep this usage to a minimum, though, especially when
+ * calling API functions that invoke hooks, or API functions from modules
+ * listed as dependencies, since these may not be available or work as expected
+ * when the module is disabled.)
+ *
* @see hook_install()
* @see hook_schema()
* @see hook_disable()