You are here

function widgets_template_custom_markup_form in Widgets 7

Form structure for the template custom text form.

Note that this is not a complete form, it only contains the portion of the form for configuring the resize options. Therefore it does not not need to include metadata about the element, nor a submit button.

Parameters

$data: The current configuration for this resize element.

1 string reference to 'widgets_template_custom_markup_form'
widgets_widgets_element_info in ./widgets.elements.inc
Implements hook_widgets_element_info().

File

./widgets.admin.inc, line 837
Administration pages for widget settings.

Code

function widgets_template_custom_markup_form($data) {
  $form['text'] = array(
    '#type' => 'textarea',
    '#title' => t('Text'),
    '#default_value' => isset($data['text']) ? $data['text'] : '',
    '#required' => TRUE,
  );
  return $form;
}