summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--colorbox.admin.inc7
-rw-r--r--colorbox.info2
2 files changed, 6 insertions, 3 deletions
diff --git a/colorbox.admin.inc b/colorbox.admin.inc
index 0aa6e2e..a4ce5e4 100644
--- a/colorbox.admin.inc
+++ b/colorbox.admin.inc
@@ -93,6 +93,11 @@ function colorbox_admin_settings() {
'#options' => array('user_login' => t('User login'), 'user_login_block' => t('User login block')),
'#default_value' => variable_get('colorbox_login_form', 'user_login'),
'#description' => t('Select which form to use for login.'),
+ '#states' => array(
+ 'visible' => array(
+ ':input[name="colorbox_login"]' => array('checked' => TRUE),
+ ),
+ ),
);
$form['colorbox_extra_settings'] = array(
@@ -115,8 +120,6 @@ function colorbox_admin_settings() {
$form['colorbox_custom_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Styles and options'),
- '#collapsible' => TRUE,
- '#collapsed' => TRUE
);
$colorbox_styles = array(
'default' => t('Default'),
diff --git a/colorbox.info b/colorbox.info
index cb668eb..fffa59f 100644
--- a/colorbox.info
+++ b/colorbox.info
@@ -2,6 +2,7 @@
name = Colorbox
description = A light-weight, customizable lightbox plugin for jQuery 1.3 and 1.4.
core = 7.x
+configure = admin/config/media/colorbox
files[] = colorbox.admin.inc
files[] = colorbox.install
@@ -11,4 +12,3 @@ files[] = colorbox.theme.inc
files[] = drush/colorbox.drush.inc
files[] = views/colorbox.views.inc
files[] = views/colorbox_handler_field_colorbox.inc
-configure = admin/config/media/colorbox \ No newline at end of file