summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addthis.admin.inc34
1 files changed, 23 insertions, 11 deletions
diff --git a/addthis.admin.inc b/addthis.admin.inc
index 06e4a52..9a36909 100644
--- a/addthis.admin.inc
+++ b/addthis.admin.inc
@@ -17,42 +17,54 @@ function addthis_admin_settings_form($form_state) {
'#required' => FALSE,
'#description' => t('Profile ID at <a href="http://addthis.com/" target="_blank">AddThis.com</a>. Required for statistics.'),
);
- $form[AddThis::BOOKMARK_URL_KEY] = array(
+ $form[AddThis::LARGE_ICONS_KEY] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Use large toolbox icons'),
+ '#default_value' => AddThis::areLargeIconsEnabled(),
+ '#required' => FALSE,
+ '#description' => t('Use large 32x32 pixel toolbox icons instead of smaller 16x16 pixel icons.'),
+ );
+ $form['service_urls_fieldset'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Service URLs'),
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE,
+ );
+ $form['service_urls_fieldset'][AddThis::BOOKMARK_URL_KEY] = array(
'#type' => 'textfield',
'#title' => t('AddThis bookmark URL'),
'#default_value' => AddThis::getBaseBookmarkUrl(),
'#required' => TRUE,
'#description' => t('AddThis bookmark URL.'),
);
- $form[AddThis::SERVICES_CSS_URL_KEY] = array(
+ $form['service_urls_fieldset'][AddThis::SERVICES_CSS_URL_KEY] = array(
'#type' => 'textfield',
'#title' => t('AddThis services stylesheet URL'),
'#default_value' => AddThis::getServicesCssUrl(),
'#required' => TRUE,
'#description' => t('AddThis services stylesheet URL.'),
);
- $form[AddThis::SERVICES_JSON_URL_KEY] = array(
+ $form['service_urls_fieldset'][AddThis::SERVICES_JSON_URL_KEY] = array(
'#type' => 'textfield',
'#title' => t('AddThis services json URL'),
'#default_value' => AddThis::getServicesJsonUrl(),
'#required' => TRUE,
'#description' => t('AddThis services json URL.'),
);
- $form[AddThis::WIDGET_JS_URL_KEY] = array(
+ $form['service_urls_fieldset'][AddThis::WIDGET_JS_URL_KEY] = array(
'#type' => 'textfield',
'#title' => t('AddThis javascript widget URL'),
'#default_value' => AddThis::getBaseWidgetJsUrl(),
'#required' => TRUE,
'#description' => t('AddThis javascript widget URL.'),
);
- $form[AddThis::LARGE_ICONS_KEY] = array(
- '#type' => 'checkbox',
- '#title' => t('Use large toolbox icons'),
- '#default_value' => AddThis::areLargeIconsEnabled(),
- '#required' => FALSE,
- '#description' => t('Use large 32x32 pixel toolbox icons instead of smaller 16x16 pixel icons.'),
+ $form['enabled_services_fieldset'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Enabled services'),
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE,
);
- $form[AddThis::ENABLED_SERVICES_KEY] = array(
+ $form['enabled_services_fieldset'][AddThis::ENABLED_SERVICES_KEY] = array(
'#type' => 'checkboxes',
'#title' => t('Enabled services'),
'#options' => AddThis::getServiceOptions(),