aboutsummaryrefslogtreecommitdiff
path: root/mod/file/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-01 12:42:00 -0400
committercash <cash.costello@gmail.com>2011-10-01 12:42:00 -0400
commitc7b0817dabd1ea596086b03569d4480355e5f721 (patch)
tree41da241f906243771130b3df92ff4180f30ffeb8 /mod/file/start.php
parent7c52743cc264e258d55c42dccde021b1032f2358 (diff)
downloadelgg-c7b0817dabd1ea596086b03569d4480355e5f721.tar.gz
elgg-c7b0817dabd1ea596086b03569d4480355e5f721.tar.bz2
using the menu system for the embed tabs and adding a reusable select list view
Diffstat (limited to 'mod/file/start.php')
-rw-r--r--mod/file/start.php21
1 files changed, 15 insertions, 6 deletions
diff --git a/mod/file/start.php b/mod/file/start.php
index 749d7a519..16ce0e233 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -61,19 +61,28 @@ function file_init() {
$item = ElggMenuItem::factory(array(
'name' => 'file',
'text' => elgg_echo('file'),
- 'href' => '#',
- 'section' => 'select'
+ 'section' => 'select',
+ 'data' => array(
+ 'tab_type' => 'select',
+ 'options' => array(
+ 'type' => 'object',
+ 'subtype' => 'file',
+ ),
+ ),
));
- elgg_register_menu_item('embed:sections', $item);
+ elgg_register_menu_item('embed', $item);
$item = ElggMenuItem::factory(array(
'name' => 'file_upload',
'text' => elgg_echo('file:upload'),
- 'href' => '#',
- 'section' => 'upload'
+ 'section' => 'upload',
+ 'data' => array(
+ 'tab_type' => 'upload',
+ 'view' => 'embed/file_upload/content',
+ ),
));
- elgg_register_menu_item('embed:sections', $item);
+ elgg_register_menu_item('embed', $item);
}
/**