function _wijering_admin_form_submit in SWF Tools 5
1 call to _wijering_admin_form_submit()
- wijering_admin_form_submit in wijering/
wijering.module
File
- wijering/
wijering.admin.inc, line 474
Code
function _wijering_admin_form_submit($form_id, &$form_values) {
// Flatten settings for saving
$saved = array();
foreach ($form_values as $player => $settings) {
$flat[$player] = array();
if (is_array($settings)) {
foreach ($settings as $category => $vars) {
$flat[$player] = array_merge($flat[$player], $vars);
}
variable_set('swftools_' . $player, $flat[$player]);
}
}
// Clear caches
cache_clear_all();
cache_clear_all('*', 'cache_filter', TRUE);
}