Created
March 28, 2013 15:29
-
-
Save Cyberschorsch/5264086 to your computer and use it in GitHub Desktop.
Submit Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Provide the default form form for submitting options. | |
*/ | |
function options_submit(&$form, &$form_state, &$options = array()) { | |
// We filter the options on only selected ones. | |
$options['flags'] = array_filter($options['flags']); | |
$options['vocabularies'] = array_filter($options['vocabularies']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment