function ctools_custom_content_ui::edit_form_submit
Overrides ctools_export_ui::edit_form_submit
File
-
ctools_custom_content/
plugins/ export_ui/ ctools_custom_content_ui.class.php, line 57
Class
Code
public function edit_form_submit(&$form, &$form_state) {
parent::edit_form_submit($form, $form_state);
// Since items in our settings are not in the schema, we have to do these manually:
$form_state['item']->settings['title'] = $form_state['values']['title'];
$form_state['item']->settings['title_heading'] = $form_state['values']['title_heading'];
$form_state['item']->settings['body'] = $form_state['values']['body']['value'];
$form_state['item']->settings['format'] = $form_state['values']['body']['format'];
$form_state['item']->settings['substitute'] = $form_state['values']['substitute'];
}