Commit 500b2a00 authored by Dries's avatar Dries
Browse files

- Patch #645850 by Amitaibu: remove unused variables from text module.

parent 0b978036
......@@ -610,7 +610,6 @@ function text_textfield_elements_process($element, $form_state, $form) {
$field = $form['#fields'][$element['#field_name']]['field'];
$instance = $form['#fields'][$element['#field_name']]['instance'];
$field_key = $element['#columns'][0];
$delta = $element['#delta'];
$element[$field_key] = array(
'#type' => 'textfield',
......@@ -645,7 +644,6 @@ function text_textarea_elements_process($element, $form_state, $form) {
$field = $form['#fields'][$element['#field_name']]['field'];
$instance = $form['#fields'][$element['#field_name']]['instance'];
$field_key = $element['#columns'][0];
$delta = $element['#delta'];
$element[$field_key] = array(
'#type' => 'textarea',
......@@ -677,7 +675,6 @@ function text_textarea_elements_process($element, $form_state, $form) {
function text_textarea_with_summary_process($element, $form_state, $form) {
$field = $form['#fields'][$element['#field_name']]['field'];
$instance = $form['#fields'][$element['#field_name']]['instance'];
$delta = $element['#delta'];
$field_key = $element['#columns'][1];
$display = !empty($element['#value'][$field_key]) || !empty($instance['settings']['display_summary']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment