diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-07-30 18:20:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-07-30 18:20:21 +0000 |
commit | e7f195bbee7b7ce4f1206a4cf3ccc4e01aabee50 (patch) | |
tree | bcf5cca0e9a2c05dac388f11f60c9781897cc7ad /modules/node | |
parent | 7b682ae9f88bd953212281aadfbb4dd4dc0adbde (diff) | |
download | brdo-e7f195bbee7b7ce4f1206a4cf3ccc4e01aabee50.tar.gz brdo-e7f195bbee7b7ce4f1206a4cf3ccc4e01aabee50.tar.bz2 |
- Patch #146425 by pwolanin et al:
* Removes the hard-coded 'book' type and perform all node actions
equally on any node type via hook_nodeapi.
* Achieves 100% integration with the menu system. Improves
performance of book rendering.
* All the algorithms have been changed to use the tree data structure
returned by the menu system.
* Added support for 'multiple books'.
* Some UI improvements.
This is a momumental patch that took 69 iterations. Although there is
room for improvement, this is a big step forward. Thanks for the
persistence, pwolanin.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index a2a97eee3..2dd3735b5 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -14,6 +14,7 @@ define('NODE_BUILD_PREVIEW', 1); define('NODE_BUILD_SEARCH_INDEX', 2); define('NODE_BUILD_SEARCH_RESULT', 3); define('NODE_BUILD_RSS', 4); +define('NODE_BUILD_PRINT', 5); /** * Implementation of hook_help(). @@ -2231,8 +2232,8 @@ function node_form(&$form_state, $node) { } function node_form_build_preview($form, &$form_state) { - // We do not want to execute button level handlers, we want the form level - // handlers to go in and change the submitted values. + // Unset any button-level handlers, execute all the form-level submit functions + // to process the form values into an updated node, and rebuild the form. unset($form_state['submit_handlers']); form_execute_handlers('submit', $form, $form_state); @@ -2390,8 +2391,8 @@ function theme_node_log_message($log) { function node_form_submit($form, &$form_state) { global $user; - // We do not want to execute button level handlers, we want the form level - // handlers to go in and change the submitted values. + // Unset any button-level handlers, and execute all the form-level submit + // functions to process the form values into an updated node. unset($form_state['submit_handlers']); form_execute_handlers('submit', $form, $form_state); |