Hook_load = Hook_node_load

Source: Internet
Author: User

Hook_node_load can be used everywhere, after node is taken out of the database and then modifies the value of $node.
There are two cases of hook_load

   DPM (Node_type_get_base (' Poll ')); Poll Poll_load would be loaded   DPM (Node_type_get_base (' article '));//node_content

So

Node_load (' poll ' s ID '); node_load (' normal node ' id ');

The first one will excite the poll_load, and in poll.module it is not visible that the direct call Poll_load is called by the Attachload method of the Nodecontroller.
The second, because it is a node type defined by UserInterface, cannot activate Hook_load, but activates Hook_node_load ()

Hook_load = Hook_node_load

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.