API page: http://api.drupal.org/api/drupal/developer%21topics%21forms_api_referenc...
In the code example used for #states", the comment does not match the code: The settings are hidden when the checkbox is not selected.
$form['email_canceled']['settings'] = array(
'#type' => 'container',
'#states' => array(
// Hide the settings when the cancel notify checkbox is disabled.
'invisible' => array(
':input[name="email_canceled_toggle"]' => array('checked' => FALSE),
),
),
);
Active
API documentation files
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.