From e7f195bbee7b7ce4f1206a4cf3ccc4e01aabee50 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 30 Jul 2007 18:20:21 +0000 Subject: - 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. --- modules/node/node.module | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/node') 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); -- cgit v1.2.3