multipage_form_example_load
developer/examples/multipage_form_example.module, строка 311
- Версии
- 5 – 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.
Код
<?php
function multipage_form_example_load($node) {
$additions = variable_get('multipage_form_example_'. $node->nid, NULL);
$additions = (object) $additions;
return $additions;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии