In the function 'import_form_submit' the values for starting point, number of records, and replace option are ignored due to incorrect referencing and consequently the defaults of:

  • start = 0
    nrecords = 99999999
    replace = true

are always used.
You need to reference "$form_state['values']['start']", "$form_state['values']['nrecords']", and "$form_state['values']['replace']".

Once that is working, you will need to address the logic of when to create and delete the family_relations_temp table.

Comments

old_dog’s picture

There's more....
The 'isset()' test returns TRUE for an empty string variable, which is what you get if you leave the fields blank on the form.
To make it work, test for '!empty()'

old_dog’s picture

Version: 7.x-1.x-dev » 7.x-1.0
Zarevac’s picture

Assigned: Unassigned » Zarevac
Status: Active » Closed (fixed)