aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-13 19:37:55 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-13 19:37:55 +0000
commit4199940b13fd119a368c616c4c9b4ab549bd49e5 (patch)
treef2e29601eac82ba666c68010da05e6b21d90917a /mod/ecml/start.php
parent60fad44b07361eed72cf472d23618dfdd99be91f (diff)
downloadelgg-4199940b13fd119a368c616c4c9b4ab549bd49e5.tar.gz
elgg-4199940b13fd119a368c616c4c9b4ab549bd49e5.tar.bz2
ECML uses the brand new granular view hooks.
git-svn-id: http://code.elgg.org/elgg/trunk@5726 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/ecml/start.php')
-rw-r--r--mod/ecml/start.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/ecml/start.php b/mod/ecml/start.php
index 7bb5f919f..07d30949a 100644
--- a/mod/ecml/start.php
+++ b/mod/ecml/start.php
@@ -30,9 +30,6 @@ function ecml_init() {
register_page_handler('ecml_admin', 'ecml_admin_page_handler');
register_elgg_event_handler('pagesetup', 'system', 'ecml_pagesetup');
- // parse views for keywords
- register_plugin_hook('display', 'view', 'ecml_parse_view');
-
// show ECML-enabled icon on free-text input areas
elgg_extend_view('input/longtext', 'ecml/input_ext');
elgg_extend_view('input/plaintext', 'ecml/input_ext');
@@ -45,6 +42,10 @@ function ecml_init() {
// Wants array('view_name' => 'Short Description')
$CONFIG->ecml_parse_views = trigger_plugin_hook('get_views', 'ecml', NULL, array());
+ foreach ($CONFIG->ecml_parse_views as $view => $desc) {
+ register_plugin_hook('view', $view, 'ecml_parse_view');
+ }
+
// provide a few built-in ecml keywords.
// @todo could pull this out into an array here to save an API call.
register_plugin_hook('get_keywords', 'ecml', 'ecml_keyword_hook');