Closed (fixed)
Project:
Menu Icons
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2012 at 23:54 UTC
Updated:
14 Mar 2012 at 02:50 UTC
I've form-altered the menu icons UI to hide the unnecessary form fields until the check box is checked. Thought you might be interested in this as well:
// Make the 'path to image' and 'upload image' fields hidden until the checkbox is checked.
$form['icon']['icon_path']['#states'] = array(
'visible' => array (
':input[name="use_icon_logo"]' => array('checked' => TRUE),
),
);
$form['icon']['icon_upload']['#states'] = array(
'visible' => array (
':input[name="use_icon_logo"]' => array('checked' => TRUE),
),
);
Comments
Comment #1
acrollet commentedCool, thanks! Committed in http://drupalcode.org/project/menu_icons.git/commit/98cf5fd