You are here

function patterns_edit_submit in Patterns 7

Same name and namespace in other branches
  1. 5 patterns.module \patterns_edit_submit()
  2. 6.2 patterns.module \patterns_edit_submit()
  3. 6 patterns.module \patterns_edit_submit()
  4. 7.2 includes/forms/editor.inc \patterns_edit_submit()

Form submission handler for patterns_edit_form().

See also

patterns_edit_validate()

File

includes/forms/editor.inc, line 255
Functions, forms related to the Patterns editor.

Code

function patterns_edit_submit($form, &$form_state) {
  $name = $form_state['values']['name'];
  $content = $form_state['values']['content'];
  $format = $form_state['values']['format'];
  patterns_io_save_pattern($content, $name, $format);
}