You are here

function form_builder_property_markup_form in Form Builder 7

Same name and namespace in other branches
  1. 6 includes/form_builder.properties.inc \form_builder_property_markup_form()

Configuration form for the "markup" property.

1 string reference to 'form_builder_property_markup_form'
form_builder_form_builder_properties in ./form_builder.module
Implementation of hook_form_builder_properties().

File

includes/form_builder.properties.inc, line 254
form_builder.properties.inc Implementations of hook_form_builder_properties in separate functions.

Code

function form_builder_property_markup_form(&$form_state, $form_type, $element, $property) {
  $form = array();

  // TODO: This is a placeholder until "#markup" becomes available in D7.
  $form['markup'] = array(
    '#type' => 'text_format',
    '#title' => t('Markup'),
    '#default_value' => $element['#markup'],
    '#format' => isset($element['#format']) ? $element['#format'] : NULL,
    '#weight' => 1,
    '#wysiwyg' => FALSE,
  );
  return $form;
}