aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/start.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 00:58:11 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 00:58:11 +0000
commit0a3ba94a2805b8550c45f3fbf9dc9df148ff03a5 (patch)
treeb3a1dd893fd465fbb4706b89a4cb65ded10e2f99 /mod/embed/start.php
parentf16c546ca85ef1f8c27e0edccfca776a9b74daf1 (diff)
downloadelgg-0a3ba94a2805b8550c45f3fbf9dc9df148ff03a5.tar.gz
elgg-0a3ba94a2805b8550c45f3fbf9dc9df148ff03a5.tar.bz2
light clean up on the embed plugin which doesn't appear to work at present
git-svn-id: http://code.elgg.org/elgg/trunk@8125 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/embed/start.php')
-rw-r--r--mod/embed/start.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php
index 8ad1a6178..f8a8701fa 100644
--- a/mod/embed/start.php
+++ b/mod/embed/start.php
@@ -5,14 +5,16 @@
* @package ElggEmbed
*/
+
+elgg_register_event_handler('init', 'system', 'embed_init');
+
/**
* Init function
- *
*/
function embed_init() {
elgg_extend_view('css/screen', 'embed/css');
elgg_extend_view('js/elgg', 'embed/js');
- elgg_extend_view('html_head/extend', 'embed/metatags');
+ elgg_extend_view('footer/analytics', 'embed/lightbox_init');
elgg_extend_view('input/longtext', 'embed/link', 1);
// Page handler for the modal media embed
@@ -29,12 +31,10 @@ function embed_page_handler($page) {
$page[0] = 'embed';
}
- switch($page[0]) {
+ switch ($page[0]) {
case 'upload':
echo elgg_view('embed/upload');
-
break;
-
case 'embed':
default:
// trigger hook to get section tabs
@@ -58,12 +58,9 @@ function embed_page_handler($page) {
'upload_sections' => $upload_sections,
'internal_name' => $internal_name
));
-
break;
}
// exit because this is in a modal display.
exit;
}
-
-elgg_register_event_handler('init', 'system', 'embed_init'); \ No newline at end of file