function patterns_quickrun_submit in Patterns 7
Same name and namespace in other branches
- 7.2 includes/forms/quickrun.inc \patterns_quickrun_submit()
Form submission handler for patterns_quickrun().
See also
File
- includes/
forms/ quickrun.inc, line 76 - Functions, forms related to the Patterns editor.
Code
function patterns_quickrun_submit($form, $form_state) {
// Parse the content of the textarea
$pattern['pattern'] = patterns_parser_parse($form_state['values']['content'], $form_state['values']['format']);
$pattern = patterns_get_pattern_obj($pattern);
$params['run-subpatterns'] = 'always';
// TODO
$params['quickrun'] = TRUE;
return patterns_start_engine($pattern, $params, $form_state['values']['mode']);
}