Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 199554b

Browse files
author
mgrauer
committed
Merge pull request #92 from midasplatform/add_community_create_callback
Issue callback upon community creation
2 parents fcc19a1 + e9b7b16 commit 199554b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/models/base/CommunityModelBase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ public function createCommunity($name, $description, $privacy, $user, $canJoin =
226226
$feedpolicygroupModel->createPolicy($anonymousGroup, $feed, MIDAS_POLICY_READ);
227227
}
228228
}
229+
Zend_Registry::get('notifier')->callback(
230+
'CALLBACK_CORE_NEW_COMMUNITY_ADDED',
231+
array('community' => $communityDao)
232+
);
229233

230234
return $communityDao;
231235
}

0 commit comments

Comments
 (0)