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;
So how do I get this node property?