Files
gallery3/modules/forge/libraries/Form_Textarea.php
Tim Almdal e518dafb19 1) Revert the changes to Form_Upload and Form_Textarea, so we don't have to change third party code.
2) Change drawForm to check for a non empty $input->class in order to determime if the element should be wrapped in <li>...</li>.  If $input->class is empty then treat as a hidden field.
2008-12-07 21:24:50 +00:00

31 lines
505 B
PHP

<?php
/**
* FORGE textarea input library.
*
* $Id$
*
* @package Forge
* @author Kohana Team
* @copyright (c) 2007-2008 Kohana Team
* @license http://kohanaphp.com/license.html
*/
class Form_Textarea_Core extends Form_Input {
protected $data = array
(
'class' => 'textarea',
'value' => '',
);
protected $protect = array('type');
protected function html_element()
{
$data = $this->data;
unset($data['label']);
return form::textarea($data);
}
} // End Form Textarea