function layouter_two_columns_form_submit in Layouter - WYSIWYG layout templates 7
Proccess Layouter Form with two_columns.
File
- includes/
layouter.pages.inc, line 183 - File with pages callbacks.
Code
function layouter_two_columns_form_submit($form, &$form_state) {
$values = $form_state['values'];
$text_content = strip_tags($values['text_content']);
$textarea_id = $form_state['textarea_id'];
// Apply the layout to the content.
$content = theme('layouter_two_columns', array(
'text' => $text_content,
));
// Insert it into textarea field.
layouter_insert_content_into_textarea($textarea_id, $content);
}