function panopoly_widgets_configure_form_submit in Panopoly Widgets 7
Form submissions callback for panopoly_widgets_configure_form().
1 string reference to 'panopoly_widgets_configure_form_submit'
- panopoly_widgets_configure_form in ./
panopoly_widgets.module - Configuration Form for Panopoly Magic
File
- ./
panopoly_widgets.module, line 69
Code
function panopoly_widgets_configure_form_submit($form, &$form_state) {
if ($file_instance = field_info_instance('fieldable_panels_pane', 'field_basic_file_file', 'basic_file')) {
$file_extensions = $form_state['values']['panopoly_widgets_file_extensions'];
$file_instance['settings']['file_extensions'] = $file_extensions;
field_update_instance($file_instance);
}
}