function cufon_admin_submit in Cufón 6
Same name and namespace in other branches
- 7.2 includes/cufon.admin.inc \cufon_admin_submit()
Submit callback for cufon administrative settings
Filters out empty form elements.
1 string reference to 'cufon_admin_submit'
- cufon_admin in ./
cufon.admin.inc - Administration settings page
File
- ./
cufon.admin.inc, line 80
Code
function cufon_admin_submit($form, &$form_state) {
foreach ($form_state['values']['cufon_selectors'] as $row => $options) {
if (empty($options['selector']) && empty($options['options']['fontFamily'])) {
unset($form_state['values']['cufon_selectors'][$row]);
}
}
}