aboutsummaryrefslogtreecommitdiff
path: root/mod/file/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-03 19:02:49 -0700
committerCash Costello <cash.costello@gmail.com>2011-10-03 19:02:49 -0700
commitc1ae08ad43ef1eafbd92fc9526c2fdecbe5c5977 (patch)
treeb458316db9f39b2b0f820952d2a05ffd1ad145a0 /mod/file/start.php
parente1283016e48e2f785442ee8a0d18cd09376d241c (diff)
parent9d5c00c78c0666a31485d870a1e657d4557b23c4 (diff)
downloadelgg-c1ae08ad43ef1eafbd92fc9526c2fdecbe5c5977.tar.gz
elgg-c1ae08ad43ef1eafbd92fc9526c2fdecbe5c5977.tar.bz2
Merge pull request #70 from cash/embed-menu
Fixes #3852, #3854, #3855 Refs #3567 Embed plugin rewrite
Diffstat (limited to 'mod/file/start.php')
-rw-r--r--mod/file/start.php19
1 files changed, 13 insertions, 6 deletions
diff --git a/mod/file/start.php b/mod/file/start.php
index 749d7a519..843ae0794 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -61,19 +61,26 @@ function file_init() {
$item = ElggMenuItem::factory(array(
'name' => 'file',
'text' => elgg_echo('file'),
- 'href' => '#',
- 'section' => 'select'
+ 'priority' => 10,
+ 'data' => array(
+ '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'
+ 'priority' => 100,
+ 'data' => array(
+ 'view' => 'embed/file_upload/content',
+ ),
));
- elgg_register_menu_item('embed:sections', $item);
+ elgg_register_menu_item('embed', $item);
}
/**