Hola como estan,
Miren tengo las siguientes funciones de una galeria de imagenes que sube una sola a la vez y estoy intentando modificarla para que suba al menos 5.
/*----------------BOTON SUBIDA----------------------*/
function theme_filefield_widget_item($element) {
// Put the upload button directly after the upload field.
$element['upload']['#field_suffix'] = drupal_render($element['filefield_upload']);
$element['upload']['#theme'] = 'filefield_widget_file';
$output = '';
$output .= '<div class="filefield-element clear-block">';
if ($element['fid']['#value'] != 0) {
$output .= '<div class="widget-preview">';
$output .= drupal_render($element['preview']);
$output .= '</div>';
}
$output .= '<div class="widget-edit">';
$output .= drupal_render($element);
$output .= '</div>';
$output .= '</div>';
return $output;
}
/*----------------CAMPO DE CARGA----------------------*/
function theme_filefield_widget_file($element) {
$output = '';
$output .= '<div class="filefield-upload clear-block">';
if (isset($element['#field_prefix'])) {
$output .= $element['#field_prefix'];
}
_form_set_class($element, array('form-file'));
$output .= '<input type="file" name="'. $element['#name'] .'"'. ($element['#attributes'] ? ' '. drupal_attributes($element['#attributes']) : '') .' id="'. $element['#id'] .'" size="'. $element['#size'] ."\" />\n";
if (isset($element['#field_suffix'])) {
$output .= $element['#field_suffix'];
}
$output .= '</div>';
return theme('form_element', $element, $output);
}
la cosa es que he intentado modificarla pero al subir las imagenes solo termina subiendo la ultima, espero que puedan ayudarme a modificarla, me seria de mucha ayuda.
Gracias de antemano.