Skip to content

Commit

Permalink
#84: disable color selection when disco mode is checked
Browse files Browse the repository at this point in the history
  • Loading branch information
katypool committed Jan 19, 2015
1 parent 4048aa0 commit bf5713f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sites/all/modules/playbox_admin/playbox_admin.module
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ function playbox_admin_form($form, &$form_state) {
'#options' => _playbox_admin_get_colors(),
'#empty_option' => 'Select a color',
'#default_value' => variable_get('playbox_admin_color'),
'#states' => array(
// Hide the color select when disco mode is checked.
'disabled' => array(
':input[name="playbox_admin_disco"]' => array('checked' => TRUE),
),
),
);

$form['playbox_admin_disco'] = array(
Expand Down

0 comments on commit bf5713f

Please sign in to comment.