How to have a drupal module respond on node creation I am trying to convert some of my rules to a custom module for more flexibility and better configuration.

However, I am stuck; I want my module to read some fields on node creation (or update). In rules there is the event property where I can choose 'on creation of node'.

I suppose I have to use a hook of some sort, but hooks like hook_node_insert() (and some others) that respond on a node being created (or saved) are depending on a node parameter; hook_node_insert($node).

So how do I get this node property?
All credits to Clive, but here is the answer.

You need to write a custom module: Simply write a MYMODULE_node_insert($node) function containing the code you want to execute. Drupal will call that function every time a node is created (when the module is enabled).

If you are changing the code of a module that is already enabled, you should clear Drupal caches, as otherwise Drupal will not notice the module contains a new hook implementation. This can be achieved by disabling the module before editing it, and re-enabling it after the code has been changed.