开发者

Drupal: how to see the query when the node is created or any content type is created

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 nod开发者_JAVA百科e 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.


The Devel module can be used to see the queries that are executed on a Drupal page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜