aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-15 02:34:52 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-15 02:34:52 +0000
commitc7ef93621e50dc3d6ded212e076de510ec2a263f (patch)
treeecec9580e4cfe6fdb8b5857dae2078eec81aacc2 /mod/ecml/start.php
parent527c9dca0b5d71513adff8c7f8df6b88315bc6cf (diff)
downloadelgg-c7ef93621e50dc3d6ded212e076de510ec2a263f.tar.gz
elgg-c7ef93621e50dc3d6ded212e076de510ec2a263f.tar.bz2
Updated ECML docs.
Removed the _ as a valid keyword character (it looks funny). Added the media sites in start.php. Fixed bug that prevented [[view]] from working. Consequently, [[view]] now requires a src="" attribute. git-svn-id: http://code.elgg.org/elgg/trunk@5740 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/ecml/start.php')
-rw-r--r--mod/ecml/start.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/ecml/start.php b/mod/ecml/start.php
index 51082e9c6..d1a86f82b 100644
--- a/mod/ecml/start.php
+++ b/mod/ecml/start.php
@@ -110,7 +110,7 @@ function ecml_parse_view($hook, $entity_type, $return_value, $params) {
// give me everything that is not a ], possibly followed by a :, and surrounded by [[ ]]s
//$keyword_regex = '/\[\[([a-z0-9_]+):?([^\]]+)?\]\]/';
- $keyword_regex = '/\[\[([a-z0-9_]+)([^\]]+)?\]\]/';
+ $keyword_regex = '/\[\[([a-z0-9]+)([^\]]+)?\]\]/';
$CONFIG->ecml_current_view = $params['view'];
$return_value = preg_replace_callback($keyword_regex, 'ecml_parse_view_match', $return_value);
@@ -128,7 +128,7 @@ function ecml_parse_view($hook, $entity_type, $return_value, $params) {
* @return unknown_type
*/
function ecml_keyword_hook($hook, $entity_type, $return_value, $params) {
- $keywords = array('youtube', 'slideshare', 'vimeo');
+ $keywords = array('entity', 'view', 'youtube', 'slideshare', 'vimeo');
foreach ($keywords as $keyword) {
$return_value[$keyword] = array(