[eluser]jáquer[/eluser]
I did come in looking for just this, but I believe your code got cut off. It's supposed to be:
Code:
function form_img($data = '', $src = '', $extra = '')
{
$defaults = array('type' => 'image', 'name' => (( ! is_array($data)) ? $data : ''), 'src' => $src);
return "<input "._parse_form_attributes($data, $defaults).$extra." />";
}
And to help people that don't know how to apply this, you have to create an "application/helpers/MY_form_helper.php" with the above code.