aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorJeff Tilson <jrtilson@gmail.com>2013-04-11 16:01:27 -0400
committerJeff Tilson <jrtilson@gmail.com>2013-04-11 16:01:27 -0400
commitcbb3c583b558288c546d477ea1f4c19d8e6eb937 (patch)
treee0090a6df8ee4ce1a9a1c696a7d1e8952840dd5b /mod
parentc4a5b13569f9e3d41eb03ebf8e9b031719680453 (diff)
downloadelgg-cbb3c583b558288c546d477ea1f4c19d8e6eb937.tar.gz
elgg-cbb3c583b558288c546d477ea1f4c19d8e6eb937.tar.bz2
Register bookmarks view for ecml parsing
Diffstat (limited to 'mod')
-rw-r--r--mod/bookmarks/start.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php
index 3846f5165..a5685388b 100644
--- a/mod/bookmarks/start.php
+++ b/mod/bookmarks/start.php
@@ -56,6 +56,9 @@ function bookmarks_init() {
// Listen to notification events and supply a more useful message
elgg_register_plugin_hook_handler('notify:entity:message', 'object', 'bookmarks_notify_message');
+ // Register bookmarks view for ecml parsing
+ elgg_register_plugin_hook_handler('get_views', 'ecml', 'bookmarks_ecml_views_hook');
+
// Register a URL handler for bookmarks
elgg_register_entity_url_handler('object', 'bookmarks', 'bookmark_url');
@@ -295,3 +298,16 @@ function bookmarks_page_menu($hook, $type, $return, $params) {
return $return;
}
+
+/**
+ * Return bookmarks views to parse for ecml
+ *
+ * @param string $hook
+ * @param string $type
+ * @param array $return
+ * @param array $params
+ */
+function bookmarks_ecml_views_hook($hook, $type, $return, $params) {
+ $return['object/bookmarks'] = elgg_echo('item:object:bookmarks');
+ return $return;
+}