multipage_form_example_load
- Versions
- 4.7 – 6
multipage_form_example_load($node)
Implementation of hook_load().
Now that we've defined how to manage the node data in the database, We need to tell Drupal how to get the node back out. This hook is called every time a node is loaded, and allows us to do some loading of our own.
Code
developer/examples/multipage_form_example.module, line 311
<?php
function multipage_form_example_load($node) {
$additions = variable_get('multipage_form_example_'. $node->nid, NULL);
$additions = (object) $additions;
return $additions;
}
?>Login or register to post comments 