Simplifying the configuration menu

This commit is contained in:
Manuel Cillero 2017-10-07 13:12:10 +02:00
parent 9777b4c1ba
commit feb393faa4
11 changed files with 32 additions and 28 deletions

View file

@ -1167,9 +1167,9 @@ function storm_storm_dashboard_types() {
// URL: menu path which should be used, if omitted no menu item will be created
'url' => '',
// title: Required. Title of menu item, page title and title for the storm settings
'title' => t('SuiteDesk'),
'title' => t('Home page'),
// description: Required. Description for the fieldset in the storm settings
'description' => t('You can disable or reorder the links from the !dashboard here', array('!dashboard' => l(t('dashboard'), 'dashboard'))),
'description' => t('You can disable or reorder the links from the home page here.'),
// theme: theme which should be used to display this dashboard. If omitted uses standard theme storm_dashboard
'theme' => 'storm_dashboard',
// menu_options: This array will be merged into the default menu item array. If the menu should have special access arguments, title, it can be set here.
@ -1180,8 +1180,8 @@ function storm_storm_dashboard_types() {
),
),
'block' => array(
'title' => 'Dashboard block',
'description' => t('You can disable or reorder the links from the dashboard !block here', array('!block' => l(t('block'), 'admin/build/block'))),
'title' => 'Shortcuts block',
'description' => t('You can disable or reorder the links from the shortcuts block here.'),
'theme' => 'storm_dashboard_block',
),
);
@ -1846,7 +1846,7 @@ function storm_block_recent_nodes() {
function storm_admin_settings() {
$form = array();
$w = -10;
/*
$form['icons'] = array(
'#type' => 'fieldset',
'#title' => t('Icons'),
@ -1871,7 +1871,7 @@ function storm_admin_settings() {
'#weight' => $w++,
'#element_validate' => array('storm_admin_settings_icons_path_validate'),
);
*/
$form['lists'] = array(
'#type' => 'fieldset',
'#title' => t('Lists'),
@ -1884,7 +1884,7 @@ function storm_admin_settings() {
'#type' => 'textfield',
'#title' => t('Default Items per Page'),
'#default_value' => variable_get('storm_default_items_per_page', 10),
'#description' => t('Default items per page when viewing lists'),
'#description' => t('Default items per page when viewing lists.'),
'#size' => 5,
'#weight' => $w++
);
@ -1901,7 +1901,7 @@ function storm_admin_settings() {
'#type' => 'textarea',
'#title' => t('Report header'),
'#default_value' => variable_get('storm_report_header', ''),
'#description' => t('The header that will appear on SuiteDesk reports'),
'#description' => t('The header that will appear on reports.'),
'#weight' => $w++,
);
@ -2028,10 +2028,10 @@ function storm_admin_settings() {
'#weight' => $w++,
);
// DASHBOARD SETTINGS
// OPTIONS SETTINGS
$form['storm_dashboard_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Dashboard settings'),
'#title' => t('Options settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);