Thanks for your time in advance.
I am new to drupal 4.7 ,but from a coders view, I am very excited about this product.
I am still not able to see the forest for the trees however and hence this post.
I am writing a custom module that implements a new node type for a client.
In this project, I am "the data guy" vs "the presentation guy". my role is to store, retrieve
and manipulate data and keep the underlying db normalized and sane.
From a data perspective, I need to keep my modules custom tables in sync with the node and users table whenever a node is added/edited/updated/deleted and same for the users use cases.
On the SQL side, it is very simple, but on the DRUPAL side, I need to decide on a best practices strategy for implementing callbacks that handle these base db tasks.
For example, on the IBM tutorial site, their hook_menu implementation included many callbacks to node_page. However, at my jobsite, a previous developer developed a module that invoked only custom callbacks.
What is your advice? custom callbacks or the default node_x functions for manipulating a custom node type?
Here is my knowledge base to date:
I have taken a first pass in studying:
- ibm's tutorial
- new module development guide on this site
- forms api