I want to know the insert query when the content is created or any node is created.
What is a simple example for that?
The main purpose of doing this is I want to log the entries when the node is created.
So I have created a history content. When the user creates certain type of content, I have inserted his/her details in to the table by using rules and custom PHP.
It works fine. I can see in the database table but the problem is I can't see the details. When I create a view for the history table, they won't show up.
When I create the history content it displays in the view.
Maybe the inserting into the content have some dependencies, I don't know.