New hook for "node import complete"
JohnAlbin - April 15, 2008 - 18:27
| Project: | Node import |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I have a custom module that needs to know when a full node import has been completed. But node_import doesn’t have a hook that allows that.
So here's the patch to add a "node_import_complete" hook.
| Attachment | Size |
|---|---|
| import-complete-hook.patch | 1.77 KB |

#1
Needs review, of course.
#2
Out of curiosity: what does your custom module use that for?
I'm wondering if this hook would need other parameters...
#3
I want to batch import some nodes of a particular type that will replace the existing nodes of that type.
So I've…
HOOK_node_import_static()to set a variable to the current time (the first time it is called), andSo I personally don't need anymore params besides $type.
#4
Committed to 5.x-1.x-dev. Will be included in 5.x-1.6 release.
#5
Cool!
#6
Automatically closed -- issue fixed for two weeks with no activity.