aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-10 16:46:05 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-10 16:46:05 +0000
commitdc4a9e994cd2584e21700064a4905e5d48293c29 (patch)
tree2d2199a11e0e8ae0b27cd85325bed6ec31e8389a /mod
parent31d8a979e6884a1c788d3172bf695fef3fc35daf (diff)
downloadelgg-dc4a9e994cd2584e21700064a4905e5d48293c29.tar.gz
elgg-dc4a9e994cd2584e21700064a4905e5d48293c29.tar.bz2
messages now parse ecml
git-svn-id: http://code.elgg.org/elgg/trunk@6693 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/messages/start.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/messages/start.php b/mod/messages/start.php
index afa894d05..198494474 100644
--- a/mod/messages/start.php
+++ b/mod/messages/start.php
@@ -58,6 +58,10 @@ function messages_init() {
// Override metadata permissions
register_plugin_hook('permissions_check:metadata','object','messages_can_edit_metadata');
+
+ // ecml
+ register_plugin_hook('get_views', 'ecml', 'messages_ecml_views_hook');
+
}
/**
@@ -321,6 +325,19 @@ function messages_site_notify_handler(ElggEntity $from, ElggUser $to, $subject,
else return true;
}
+/**
+ * Register messages with ECML.
+ *
+ * @param unknown_type $hook
+ * @param unknown_type $entity_type
+ * @param unknown_type $return_value
+ * @param unknown_type $params
+ */
+function messages_ecml_views_hook($hook, $entity_type, $return_value, $params) {
+ $return_value['messages/messages'] = elgg_echo('messages');
+
+ return $return_value;
+}
// Make sure the messages initialisation function is called on initialisation