I am about to do a fair amount of importing (35+ Joomla sites to one Drupal site). And I want to run some import tests. When done, I would (naturally) delete the nodes/users/terms created and then start over.

A generic question comes out of this:

Should we be updating the three {joomla} tables on node/user/term delete? This is an easy patch.

If so, how would we now to clear records from {joomla_section)?

CommentFileSizeAuthor
#2 602526-nodeapi.patch645 bytesagentrickard

Comments

agentrickard’s picture

I see. section ~= vocabulary.

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new645 bytes

Patch for hook_nodeapi().

malclocke’s picture

Status: Needs review » Needs work

I think this one needs a little more work. If you enable cron imports, then delete a node it will be re-imported on the next cron run.

Probably just need another checkbox on the admin settings page to enable or disable the delete hook with an appropriate explanation of the behaviour.

ParisLiakos’s picture

Status: Needs work » Closed (fixed)

After deleting everything after your tests, you can easily disable - uninstall - reinstall joomla module and you are good to go.