Commit 0e74b087 authored by frjo's avatar frjo
Browse files

Minor fixes to settings page. Testing form api #states.

parent 64a8e5f1
......@@ -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'),
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment