function patterns_edit_submit in Patterns 7.2
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 includes/forms/editor.inc \patterns_edit_submit()
Form submission handler for patterns_edit_form().
See also
File
- includes/
forms/ editor.inc, line 265 - 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);
}