From fe623545184ae1abde4c8a8f2ca5facdb6030e6b Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 4 Jun 2010 22:18:31 +0000 Subject: Added first loosely coupled upload support to embed. git-svn-id: http://code.elgg.org/elgg/trunk@6360 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/embed/start.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/embed/start.php') 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; -- cgit v1.2.3