You are here

function form_builder_examples_property_markup_form_submit in Form Builder 7.2

Submit handler for the "markup" property.

1 string reference to 'form_builder_examples_property_markup_form_submit'
form_builder_examples_form_builder_properties in examples/form_builder_examples.module
Implementation of hook_form_builder_properties().

File

examples/form_builder_examples.properties.inc, line 275
form_builder_examples.properties.inc Implementations of hook_form_builder_properties in separate functions.

Code

function form_builder_examples_property_markup_form_submit(&$form, &$form_state) {

  // The submitted data from an element of type 'text_format' is an array that
  // contains the text and its format in separate keys. We want these to wind
  // up in #markup and #format, respectively.
  $markup_array = $form_state['values']['markup'];
  $form_state['values']['markup'] = $markup_array['value'];
  $form_state['values']['format'] = $markup_array['format'];
}