You are here

function _webform_edit_markup_validate in Webform 7.4

Same name and namespace in other branches
  1. 7.3 components/markup.inc \_webform_edit_markup_validate()

Element validate handler; Set the text format value.

1 string reference to '_webform_edit_markup_validate'
_webform_edit_markup in components/markup.inc
Implements _webform_edit_component().

File

components/markup.inc, line 72
Webform module markup component.

Code

function _webform_edit_markup_validate($form, &$form_state) {
  if (is_array($form_state['values']['value'])) {
    $form_state['values']['extra']['format'] = $form_state['values']['value']['format'];
    $form_state['values']['value'] = $form_state['values']['value']['value'];
  }
}