Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
If I implement hook_node_submit(), will it be invoked when I import nodes from a feed?
I believe hook_node_submit() only gets fired when submitting a node form. So the answer to your question is no.
I think you might be better off using hook_node_presave(). This hook is invoked from node_save() before the node is saved to the database.
Required, but never shown