You are here

function styles_ui_preset_add_form_submit in Styles 7

Same name and namespace in other branches
  1. 6.2 contrib/styles_ui/includes/styles_ui.admin.inc \styles_ui_preset_add_form_submit()
  2. 6 contrib/styles_ui/includes/styles_ui.admin.inc \styles_ui_preset_add_form_submit()

Submission handler for the add style preset form.

File

contrib/styles_ui/styles_ui.admin.inc, line 90
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.
}