Skip to content

Instantly share code, notes, and snippets.

@Cyberschorsch
Created March 28, 2013 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cyberschorsch/5264086 to your computer and use it in GitHub Desktop.
Save Cyberschorsch/5264086 to your computer and use it in GitHub Desktop.
Submit Function
<?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