*_ADD_TO_IDS constants make for module inter-dependency and a requirement for developers to look at other modules' internals to work out what their version should be. These constants really need to die in a fire.

Replace them with an API in vbimportapi.module that:
- finds greatest of all ids in Drupal importee tables (beware edge case of non-core tables not being accounted for),
- multiplies that by ten (creates padding, just in case),
- takes into account that other imports may be running concurrently (so number of records to be imported will have to be taken into consideration),
- stores this,
- tells the module what to add to ids.

Comments

liam mcdermott’s picture

Just a note, this caused: #1060746: Delete removes ALL nodes