You are here

function form_builder_examples_property_cols_form in Form Builder 7.2

Configuration form for the "cols" property.

1 string reference to 'form_builder_examples_property_cols_form'
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 346
form_builder_examples.properties.inc Implementations of hook_form_builder_properties in separate functions.

Code

function form_builder_examples_property_cols_form(&$form_state, $form_type, $element, $property) {
  $form = array();
  $form['cols'] = array(
    '#form_builder' => array(
      'property_group' => 'display',
    ),
    '#type' => 'textfield',
    '#size' => 6,
    '#title' => t('Columns'),
    '#default_value' => $element['#cols'],
    '#weight' => 3,
    '#description' => t('The width of the textarea. This property might not have a visual impact depending on the CSS of your site.'),
  );
  return $form;
}