aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells/widgets
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-24 02:02:46 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-24 02:02:46 +0000
commitde3b6654ddc28fe0fc7d6e1fb615ddb4fd3e3e47 (patch)
treeca658f3be6585f6a64a56693000bc46d7796289c /views/default/layout/shells/widgets
parent1cf47c89b8ca9f5c42f5e247c3cba939f9676564 (diff)
downloadelgg-de3b6654ddc28fe0fc7d6e1fb615ddb4fd3e3e47.tar.gz
elgg-de3b6654ddc28fe0fc7d6e1fb615ddb4fd3e3e47.tar.bz2
welcome to the admin dashboard
git-svn-id: http://code.elgg.org/elgg/trunk@7922 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/shells/widgets')
-rw-r--r--views/default/layout/shells/widgets/add_panel.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/views/default/layout/shells/widgets/add_panel.php b/views/default/layout/shells/widgets/add_panel.php
index 1e2dc3bbc..2d2a05a08 100644
--- a/views/default/layout/shells/widgets/add_panel.php
+++ b/views/default/layout/shells/widgets/add_panel.php
@@ -1,9 +1,17 @@
<?php
+/**
+ * Widget add panel
+ *
+ * @uses $vars['widgets'] Array of current widgets
+ * @uses $vars['context'] The context for this widget layout
+ * @uses $vars['exact_match'] Only use widgets that match the context
+ */
$widgets = $vars['widgets'];
$context = $vars['context'];
+$exact = elgg_get_array_value('exact_match', $vars, false);
-$widget_types = elgg_get_widget_types($context);
+$widget_types = elgg_get_widget_types($context, $exact);
$current_handlers = array();
foreach ($widgets as $column_widgets) {