aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-04 22:18:31 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-04 22:18:31 +0000
commitfe623545184ae1abde4c8a8f2ca5facdb6030e6b (patch)
tree55e4a8a29292d81293ef4e48d37cb612a5b3837f /mod/embed/start.php
parent16df5711d0bb27c57e161080e76921fcee4fe0e2 (diff)
downloadelgg-fe623545184ae1abde4c8a8f2ca5facdb6030e6b.tar.gz
elgg-fe623545184ae1abde4c8a8f2ca5facdb6030e6b.tar.bz2
Added first loosely coupled upload support to embed.
git-svn-id: http://code.elgg.org/elgg/trunk@6360 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/embed/start.php')
-rw-r--r--mod/embed/start.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php
index eb6f6d4a6..a3b811371 100644
--- a/mod/embed/start.php
+++ b/mod/embed/start.php
@@ -49,12 +49,15 @@ function embed_page_handler($page) {
// @todo trigger for all right now. If we categorize these later we can trigger
// for certain categories.
$sections = trigger_plugin_hook('embed_get_sections', 'all', NULL, array());
+ $upload_sections = trigger_plugin_hook('embed_get_upload_sections', 'all', NULL, array());
asort($sections, SORT_LOCALE_STRING);
+ asort($upload_sections, SORT_LOCALE_STRING);
$active_section = get_input('active_section', NULL);
echo elgg_view('embed/embed', array(
'sections' => $sections,
- 'active_section' => $active_section
+ 'active_section' => $active_section,
+ 'upload_sections' => $upload_sections
));
break;