summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrantwynn2013-03-06 15:57:41 (GMT)
committer Ezra Barnett Gildesgame2013-03-06 15:57:41 (GMT)
commit7be52ca19ad50dd2dba679a54dbf22541835c362 (patch)
tree546909f9466767cb2ad2ad5b0d1c9d4b5fb85cca
parent4e8c779095dd2e71df6290e0e2d6cc6149c6096d (diff)
Issue #1927422 by brantwynn: Fixed Disabling default OG notifications causes Strict warnings when other modules use hook_default_rules_config().
-rw-r--r--commons_groups.module8
1 files changed, 5 insertions, 3 deletions
diff --git a/commons_groups.module b/commons_groups.module
index 448d37e..56bc58d 100644
--- a/commons_groups.module
+++ b/commons_groups.module
@@ -441,12 +441,14 @@ function commons_groups_entityreference_default_value($entity_type, $entity, $fi
}
}
- function commons_groups_default_rules_configuration_alter(&$configs) {
+function commons_groups_default_rules_configuration_alter(&$configs) {
// Disable default OG new content notifications.
// The language doesn't correspond to Commons' open groups model and we use
// commons_follow and commons_follow_notify for new content notifications.
- $configs['rules_og_member_active']->active = FALSE;
- }
+ if (isset($configs['rules_og_member_active'])) {
+ $configs['rules_og_member_active']->active = FALSE;
+ }
+}
/**
* Implements hook_node_update().