Skip to content
Snippets Groups Projects
Commit 328f1723 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #717576 by mr.baileys: incorrect param name in text_field_widget_form().

parent 803e63de
No related branches found
No related tags found
Loading
......@@ -513,14 +513,13 @@ function text_field_widget_settings_form($field, $instance) {
/**
* Implements hook_field_widget_form().
*/
function text_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base) {
$element = $base;
function text_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
$summary_widget = array();
$main_widget = array();
switch ($instance['widget']['type']) {
case 'text_textfield':
$main_widget = $base + array(
$main_widget = $element + array(
'#type' => 'textfield',
'#default_value' => isset($items[$delta]['value']) ? $items[$delta]['value'] : NULL,
'#size' => $instance['widget']['settings']['size'],
......@@ -548,7 +547,7 @@ function text_field_widget_form(&$form, &$form_state, $field, $instance, $langco
// Fall through to the next case.
case 'text_textarea':
$main_widget = $base + array(
$main_widget = $element + array(
'#type' => 'textarea',
'#default_value' => isset($items[$delta]['value']) ? $items[$delta]['value'] : NULL,
'#rows' => $instance['widget']['settings']['rows'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment