diff options
author | cash <cash.costello@gmail.com> | 2011-10-03 21:30:30 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-10-03 21:30:30 -0400 |
commit | fa04d6615760a014f7557f2d28ff864eebce8551 (patch) | |
tree | d99d94d1829480388ca3ece75d5b986e6277aef4 /mod/file | |
parent | d7549a210074a29f004642d713ede6ce04703bcc (diff) | |
download | elgg-fa04d6615760a014f7557f2d28ff864eebce8551.tar.gz elgg-fa04d6615760a014f7557f2d28ff864eebce8551.tar.bz2 |
removed the sections from the menu to provide more flexibility in tab ordering
Diffstat (limited to 'mod/file')
-rw-r--r-- | mod/file/start.php | 6 | ||||
-rw-r--r-- | mod/file/views/default/embed/file_upload/content.php | 8 |
2 files changed, 4 insertions, 10 deletions
diff --git a/mod/file/start.php b/mod/file/start.php index 16ce0e233..843ae0794 100644 --- a/mod/file/start.php +++ b/mod/file/start.php @@ -61,9 +61,8 @@ function file_init() { $item = ElggMenuItem::factory(array( 'name' => 'file', 'text' => elgg_echo('file'), - 'section' => 'select', + 'priority' => 10, 'data' => array( - 'tab_type' => 'select', 'options' => array( 'type' => 'object', 'subtype' => 'file', @@ -75,9 +74,8 @@ function file_init() { $item = ElggMenuItem::factory(array( 'name' => 'file_upload', 'text' => elgg_echo('file:upload'), - 'section' => 'upload', + 'priority' => 100, 'data' => array( - 'tab_type' => 'upload', 'view' => 'embed/file_upload/content', ), )); diff --git a/mod/file/views/default/embed/file_upload/content.php b/mod/file/views/default/embed/file_upload/content.php index a530b3194..4d3db0d97 100644 --- a/mod/file/views/default/embed/file_upload/content.php +++ b/mod/file/views/default/embed/file_upload/content.php @@ -5,13 +5,9 @@ $form_vars = array( 'enctype' => 'multipart/form-data', - 'class' => 'elgg-form', + 'class' => 'elgg-form-embed', ); -$upload_content = elgg_view_form('file/upload', $form_vars); - -echo "<div class='embed-upload'>"; -echo $upload_content; -echo "</div>"; +echo elgg_view_form('file/upload', $form_vars); // the tab we want to be forwarded to after upload is complete echo elgg_view('input/hidden', array( |