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 | |
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')
-rw-r--r-- | mod/riverdashboard/languages/en.php | 5 | ||||
-rw-r--r-- | mod/riverdashboard/start.php | 16 |
2 files changed, 20 insertions, 1 deletions
diff --git a/mod/riverdashboard/languages/en.php b/mod/riverdashboard/languages/en.php index 1ee5aab8d..34afe9176 100644 --- a/mod/riverdashboard/languages/en.php +++ b/mod/riverdashboard/languages/en.php @@ -41,7 +41,10 @@ $english = array( // likes and comments 'riverdashboard:n_more_comments' => '+%s more', - // ecml + // ecml desc + 'riverdashboard:ecml:riverdashboard' => 'River Dashboard', + + // ecml keywords 'riverdashboard:ecml:desc:activity' => 'Recent Activity', 'riverdashboard:ecml:desc:usage' => '[activity user=username limit=limit type=type subtype=subtype]' ); 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'); |