function patterns_edit_submit in Patterns 7
Same name and namespace in other branches
- 5 patterns.module \patterns_edit_submit()
- 6.2 patterns.module \patterns_edit_submit()
- 6 patterns.module \patterns_edit_submit()
- 7.2 includes/forms/editor.inc \patterns_edit_submit()
Form submission handler for patterns_edit_form().
See also
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);
}