diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-03 15:37:23 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-03 15:37:23 +0000 |
commit | 43f62a08e490728dc5505e6288188b166cc7e15f (patch) | |
tree | 67a5de7e47f591f795557a19a7a878f1ad933632 /mod/ecml/ecml_functions.php | |
parent | 2bb9d6044b90e177c0c92aafbeb55c7e48d8383b (diff) | |
download | elgg-43f62a08e490728dc5505e6288188b166cc7e15f.tar.gz elgg-43f62a08e490728dc5505e6288188b166cc7e15f.tar.bz2 |
Added entity keyword to ECML. (NB: The old entity keyword is now entity_list)
git-svn-id: http://code.elgg.org/elgg/trunk@6343 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/ecml/ecml_functions.php')
-rw-r--r-- | mod/ecml/ecml_functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/ecml/ecml_functions.php b/mod/ecml/ecml_functions.php index 7a30cde16..eba8460b2 100644 --- a/mod/ecml/ecml_functions.php +++ b/mod/ecml/ecml_functions.php @@ -30,7 +30,7 @@ function ecml_parse_view_match($matches) { } switch ($keyword) { - case 'entity': + case 'entity_list': $options = ecml_keywords_parse_entity_params($params_string); // must use this lower-level function because I missed refactoring // the list entity functions for relationships. @@ -61,6 +61,8 @@ function ecml_parse_view_match($matches) { } // if nothing matched return the original string. + // @todo this might be undesirable. will show ugly code everywhere + // if you delete a file or something. if (!$content) { $content = $matches[0]; } @@ -219,4 +221,4 @@ function ecml_is_valid_keyword($keyword, $view = NULL) { } return $r; -}
\ No newline at end of file +} |