diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-10 20:59:39 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-10 20:59:39 +0000 |
commit | 2b2ec78eb85366a5512bd89b09945357995b6768 (patch) | |
tree | ad3e5fc3f3a6ab7745f2308a16f4959dbeb53abb /mod/riverdashboard/start.php | |
parent | d6b8eb0766aa3c3b5c09c58f117ca35a68e04303 (diff) | |
download | elgg-2b2ec78eb85366a5512bd89b09945357995b6768.tar.gz elgg-2b2ec78eb85366a5512bd89b09945357995b6768.tar.bz2 |
ECML is parsed on the activity stream.
git-svn-id: http://code.elgg.org/elgg/trunk@6447 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/start.php')
-rw-r--r-- | mod/riverdashboard/start.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/riverdashboard/start.php b/mod/riverdashboard/start.php index 3f4c8da56..7c7332be8 100644 --- a/mod/riverdashboard/start.php +++ b/mod/riverdashboard/start.php @@ -18,6 +18,8 @@ function riverdashboard_init() { // add an activity stream ECML keyword // we'll restrict it to use in sitepages's custom_frontpage register_plugin_hook('get_keywords', 'ecml', 'riverdashboard_ecml_keywords_hook'); + + register_plugin_hook('get_views', 'ecml', 'riverdashboard_ecml_views_hook'); } /** @@ -67,4 +69,18 @@ function riverdashboard_ecml_keywords_hook($hook, $type, $value, $params) { return $value; } +/** + * Register the activity front page with ECML. + * + * @param unknown_type $hook + * @param unknown_type $entity_type + * @param unknown_type $return_value + * @param unknown_type $params + */ +function riverdashboard_ecml_views_hook($hook, $entity_type, $return_value, $params) { + $return_value['riverdashboard/container'] = elgg_echo('riverdashboard:ecml:riverdashboard'); + + return $return_value; +} + register_elgg_event_handler('init', 'system', 'riverdashboard_init'); |