content.php 432 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * Upload a file through the embed interface
  4. */
  5. $form_vars = array(
  6. 'enctype' => 'multipart/form-data',
  7. 'class' => 'elgg-form-embed',
  8. );
  9. $body_vars = array('container_guid' => elgg_get_page_owner_guid());
  10. echo elgg_view_form('file/upload', $form_vars, $body_vars);
  11. // the tab we want to be forwarded to after upload is complete
  12. echo elgg_view('input/hidden', array(
  13. 'name' => 'embed_forward',
  14. 'value' => 'file',
  15. ));