I propose to use $output variable name for renderer instance only. Also,
this did not work at all as $output was not returned.
$field = clone($field);
$field->prepare();
$this->prepare_event_handlers($field);
+ $returned = '';
if (!empty($field->label->text)) {
- $output .= $this->label($field->label);
+ $returned .= $this->label($field->label);
}
- return $this->output_empty_tag('input', array(
+ $returned .= $this->output_empty_tag('input', array(
'type' => $field->type,
'name' => $field->name,
'id' => $field->id,
'alt' => $field->alt,
'title' => $field->title,
'maxlength' => $field->maxlength));
+ return $returned;
}
/**