Skip to content

Instantly share code, notes, and snippets.

@DinoChiesa
Created August 4, 2016 19:45
Show Gist options
  • Save DinoChiesa/00bee01be1c1d3aaefe1f2b373ac14d4 to your computer and use it in GitHub Desktop.
Save DinoChiesa/00bee01be1c1d3aaefe1f2b373ac14d4 to your computer and use it in GitHub Desktop.
// this works, with the toggle-chk.js logic
$form['blacklist'] = array(
'#type' => 'checkbox',
'#attributes' => array( 'data-unset-if-checked' => 'whitelist' )
);
$form['whitelist'] = array(
'#type' => 'checkbox',
'#attributes' => array( 'data-unset-if-checked' => 'blacklist' )
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment