// 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]'
);
// 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');
}
/**
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');