aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 01:21:32 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 01:21:32 +0000
commitf29b327342068543b8a2a3f0f487953468f3c9a5 (patch)
tree75622302235ff897e3c7fa4971121580d0eb0d50 /mod/ecml/start.php
parent08441e1e99bbae49418c4b06c302f1a2057c2179 (diff)
downloadelgg-f29b327342068543b8a2a3f0f487953468f3c9a5.tar.gz
elgg-f29b327342068543b8a2a3f0f487953468f3c9a5.tar.bz2
Added more video sources.
Allowing the . character in keywords. git-svn-id: http://code.elgg.org/elgg/trunk@5759 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/ecml/start.php')
-rw-r--r--mod/ecml/start.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/mod/ecml/start.php b/mod/ecml/start.php
index 983894511..287bdc730 100644
--- a/mod/ecml/start.php
+++ b/mod/ecml/start.php
@@ -120,7 +120,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);
@@ -140,7 +140,19 @@ function ecml_parse_view($hook, $entity_type, $return_value, $params) {
function ecml_keyword_hook($hook, $type, $value, $params) {
// I keep going back and forth about entity and view. They're powerful, but
// a great way to let a site get hacked if the admin doesn't lock them down.
- $keywords = array('entity', 'view', 'youtube', 'slideshare', 'vimeo', 'googlemaps');
+ $keywords = array(
+ 'entity',
+ 'view',
+ 'youtube',
+ 'slideshare',
+ 'vimeo',
+ 'googlemaps',
+ 'scribd',
+ 'blip.tv',
+ 'dailymotion',
+ 'livevideo',
+ 'redlasso'
+ );
foreach ($keywords as $keyword) {
$value[$keyword] = array(