diff options
Diffstat (limited to 'mod/messages/start.php')
-rw-r--r-- | mod/messages/start.php | 17 |
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 |