aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/embed/upload.php')
-rw-r--r--mod/embed/upload.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/embed/upload.php b/mod/embed/upload.php
new file mode 100644
index 000000000..21a24786d
--- /dev/null
+++ b/mod/embed/upload.php
@@ -0,0 +1,17 @@
+<?php
+
+ // This page can only be run from within the Elgg framework
+ if (!is_callable('elgg_view')) exit;
+
+ // Get the name of the form field we need to inject into
+ $internalname = get_input('internalname');
+
+ global $SESSION;
+
+ // Echo the embed view
+ echo elgg_view('embed/upload', array(
+ 'entities' => $entities,
+ 'internalname' => $internalname,
+ ));
+
+?> \ No newline at end of file