Full ELMS Learning Network documentation
function theme_textarea
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 form.inc | theme_textarea($variables) |
cle7 form.inc | theme_textarea($variables) |
elmsmedia7 form.inc | theme_textarea($variables) |
icor7 form.inc | theme_textarea($variables) |
meedjum_blog7 form.inc | theme_textarea($variables) |
mooc7 form.inc | theme_textarea($variables) |
Returns HTML for a textarea form element.
Parameters
$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
141 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.
- accessibility_content_admin_form in sites/
all/ modules/ ulmus/ accessibility/ modules/ accessibility_content/ accessibility_content.admin.inc - accessibility_testswarm_admin_form in sites/
all/ modules/ ulmus/ accessibility/ modules/ accessibility_testswarm/ accessibility_testswarm.admin.inc - Admin form for users to define paths for automated accessibility testing.
- admin_theme_form_system_themes_admin_form_alter in sites/
all/ modules/ ulmus/ admin_theme/ admin_theme.module - Implementation of hook_form_alter().
- advagg_bundler_admin_settings_form in sites/
all/ modules/ ulmus/ advagg/ advagg_bundler/ advagg_bundler.admin.inc - Form builder; Configure advagg settings.
- advagg_mod_admin_settings_form in sites/
all/ modules/ ulmus/ advagg/ advagg_mod/ advagg_mod.admin.inc - Form builder; Configure advagg settings.
File
- includes/
form.inc, line 3922 - Functions for form and batch generation and processing.
Code
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;
}