Come utilizzare il 'imagefield_widget' del modulo imagefield in un form personalizzato? Questo script da errore HTTP0 al caricamentoi del file!
<?php
$form [ 'file' ] = array(
'#title' => t ( 'Choose a file' ),
'#type' => 'imagefield_widget' ,
'#description' => t ( 'Changes are only saved when you push the submit button.' ),
'#default_value' => array(
'fid' => 0 , 'list' => 1 ,
'data' => array( 'description' => '' ,),
'alt' => '' , 'title' => '' ,
),
);
?>