function theme_textarea

7.x theme_textarea($variables)
5.x theme_textarea($element)
6.x theme_textarea($element)

Returns HTML for a textarea form element.


$variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #title, #value, #description, #rows, #cols, #required, #attributes

Related topics

39 string references to the theme hook from theme_textarea()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

aggregator_form_category in drupal/modules/aggregator/
Form constructor to add/edit/delete aggregator categories.
ajax_pre_render_element in drupal/includes/
Adds Ajax information about an element to communicate with JavaScript.
block_admin_configure in drupal/modules/block/
Form constructor for the block configuration form.
comment_unpublish_by_keyword_action_form in drupal/modules/comment/comment.module
Form builder; Prepare a form for blacklisted keywords.
contact_category_edit_form in drupal/modules/contact/
Form constructor for the category edit form.

... See full list


drupal/includes/, line 3948
Functions for form and batch generation and processing.


function theme_textarea($variables) {
  $element = $variables['element'];
  element_set_attributes($element, array('id', 'name', 'cols', 'rows'));
  _form_set_class($element, array('form-textarea'));

  $wrapper_attributes = array(
    'class' => array('form-textarea-wrapper'),

  // Add resizable behavior.
  if (!empty($element['#resizable'])) {
    drupal_add_library('system', 'drupal.textarea');
    $wrapper_attributes['class'][] = 'resizable';

  $output = '<div' . drupal_attributes($wrapper_attributes) . '>';
  $output .= '<textarea' . drupal_attributes($element['#attributes']) . '>' . check_plain($element['#value']) . '</textarea>';
  $output .= '</div>';
  return $output;