function styles_ui_preset_add_form_submit in Styles 6.2
Same name and namespace in other branches
- 6 contrib/styles_ui/includes/styles_ui.admin.inc \styles_ui_preset_add_form_submit()
- 7 contrib/styles_ui/styles_ui.admin.inc \styles_ui_preset_add_form_submit()
Submission handler for the add style preset form.
File
- contrib/
styles_ui/ includes/ styles_ui.admin.inc, line 84 - styles/contrib/styles_ui/includes/styles_ui.admin.inc Administrative page callbacks for the Styles UI module.
Code
function styles_ui_preset_add_form_submit($form, $form_state) {
$field_type = $form_state['values']['field_type'];
$preset_name = $form_state['values']['preset_name'];
$presets = styles_presets();
// @TODO: Save the new preset.
}