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

Alex8452’s picture

You are so cool man! You solved my big problem!

asghar’s picture

Thanks
You have solved my big problem

audecide’s picture

Where do you put this in the code exactly? I get a - Fatal error: Cannot redeclare imceimage_process()

asghar’s picture

hello
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

audecide’s picture

Hey asghar -

Still haven't quite solved it, and don't have skype! Does this wholecode go anywhere in imce.module?