I used this code to allow me to have multiple nested repeating IMCE Image fields in a single form. In imceimage.module, I added the static var $imce_image_field_index to the end of the field id.
function imceimage_process($element, $edit, $form_state, $form) {
$field = $form['#field_info'][$element['#field_name']];
$delta = $element['#delta'];
$link = url('imce/browse');
static $imce_image_field_index = 0;
$field_id = $field['field_name']."-".$imce_image_field_index;
$imce_image_field_index++;
Comments
Comment #1
Alex8452 commentedYou are so cool man! You solved my big problem!
Comment #2
asghar commentedThanks
You have solved my big problem
Comment #3
audecide commentedWhere do you put this in the code exactly? I get a - Fatal error: Cannot redeclare imceimage_process()
Comment #4
asghar commentedhello
Sorry for late reply I think you will have solved your problem if you feel difficulty then contact me
my skype id is asghar.khan5
Bye
Comment #5
audecide commentedHey asghar -
Still haven't quite solved it, and don't have skype! Does this wholecode go anywhere in imce.module?