aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/admin
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-15 02:07:22 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-15 02:07:22 +0000
commite1e9ccd8d3f8a0d773ed7af4fb886781fd45cb3a (patch)
tree735ba973f656f573253e2deb89ab9f05c5a5c38b /mod/developers/views/default/admin
parent002417221f727d93b20eebc40bb85509d1584880 (diff)
downloadelgg-e1e9ccd8d3f8a0d773ed7af4fb886781fd45cb3a.tar.gz
elgg-e1e9ccd8d3f8a0d773ed7af4fb886781fd45cb3a.tar.bz2
Fixes #3009 a bare bones developer tools settings
git-svn-id: http://code.elgg.org/elgg/trunk@8713 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/developers/views/default/admin')
-rw-r--r--mod/developers/views/default/admin/developers/settings.php41
1 files changed, 40 insertions, 1 deletions
diff --git a/mod/developers/views/default/admin/developers/settings.php b/mod/developers/views/default/admin/developers/settings.php
index 990d77263..705ad00c6 100644
--- a/mod/developers/views/default/admin/developers/settings.php
+++ b/mod/developers/views/default/admin/developers/settings.php
@@ -3,5 +3,44 @@
* Developer settings
*/
+$sections = array(
+ 'simple_cache' => 'checkbox',
+ 'view_path_cache' => 'checkbox',
+ 'display_errors' => 'checkbox',
+ 'debug_level' => 'pulldown',
+);
+
+$data = array(
+ 'simple_cache' => array(
+ 'type' => 'checkbox',
+ 'value' => 1,
+ 'checked' => elgg_get_config('simplecache_enabled') == 1,
+ ),
+
+ 'view_path_cache' => array(
+ 'type' => 'checkbox',
+ 'value' => 1,
+ 'checked' => elgg_get_config('viewpath_cache_enabled') == 1,
+ ),
+
+ 'display_errors' => array(
+ 'type' => 'checkbox',
+ 'value' => 1,
+ 'checked' => elgg_get_plugin_setting('display_errors', 'developers') == 1,
+ ),
+
+ 'debug_level' => array(
+ 'type' => 'dropdown',
+ 'value' => elgg_get_config('debug'),
+ 'options_values' => array(
+ false => elgg_echo('developers:debug:off'),
+ 'ERROR' => elgg_echo('developers:debug:error'),
+ 'WARNING' => elgg_echo('developers:debug:warning'),
+ 'NOTICE' => elgg_echo('developers:debug:notice'),
+ ),
+ ),
+);
+
$form_vars = array('id' => 'developer-settings-form');
-echo elgg_view_form('developers/settings', $form_vars, array()); \ No newline at end of file
+$body_vars = array('data' => $data);
+echo elgg_view_form('developers/settings', $form_vars, $body_vars);