summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Grossenbacher2011-01-05 09:42:37 (GMT)
committer Sascha Grossenbacher2011-01-05 09:42:37 (GMT)
commitc05167236bb82440f8eba1dce0143300879eadb2 (patch)
treeb37a11d32ea61a21d9d1fe0fe9569d85d15258ed
parentc738b3b94cf59a75b14f9376daec2016244f9b1a (diff)
#1011984 by Berdir: Fixed 7004 update function depends on privatemsg_filter 7001 if it is not enabled.
-rw-r--r--privatemsg.install6
1 files changed, 4 insertions, 2 deletions
diff --git a/privatemsg.install b/privatemsg.install
index 8adea06..58c750d 100644
--- a/privatemsg.install
+++ b/privatemsg.install
@@ -160,8 +160,10 @@ function privatemsg_uninstall() {
* Implements hook_update_dependencies().
*/
function privatemsg_update_dependencies() {
- $dependencies['privatemsg']['7004']['privatemsg_filter'] = '7001';
- return $dependencies;
+ if (module_exists('privatemsg_filter')) {
+ $dependencies['privatemsg']['7004']['privatemsg_filter'] = '7001';
+ return $dependencies;
+ }
}
/**