You are here

function _textimage_image_style_form_textimage_submit in Textimage 7.3

Submit handler to deal with a style's Textimage options.

See also

_textimage_image_style_form_form_alter()

1 string reference to '_textimage_image_style_form_textimage_submit'
_textimage_image_style_form_form_alter in ./textimage.admin.inc
Make alterations to the core 'image_style_form' form.

File

./textimage.admin.inc, line 44
Textimage - Admin page callbacks.

Code

function _textimage_image_style_form_textimage_submit($form, &$form_state) {
  $style = TextimageStyles::get($form_state['values']['name']);

  // Update Textimage-specific style options.
  if ($style) {
    $style['textimage']['uri_scheme'] = $form_state['values']['textimage_options']['uri_scheme'];
    image_style_save($style);
  }
}