summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-21 18:10:26 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-21 18:10:26 +0000
commit03dda45573cc585960378ae89701553b11856560 (patch)
treed78a2b65278dabe91a194d065152e5842a8f6f9c /modules/node/node.module
parentcbc92f59cffeabac208d607418c066ce47e99786 (diff)
downloadbrdo-03dda45573cc585960378ae89701553b11856560.tar.gz
brdo-03dda45573cc585960378ae89701553b11856560.tar.bz2
- Patch #37752 by chx and Richard: renamed #post_process to #after_build.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 1fec44aca..d9b725ee4 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1663,13 +1663,13 @@ function node_form($node) {
}
if ($op == t('Preview')) {
- $form['#post_process'] = 'node_form_add_preview';
+ $form['#after_build'] = 'node_form_add_preview';
}
return drupal_get_form($node->type . '_node_form', $form, 'node_form');
}
-function node_form_add_preview($form_id, $form, $edit) {
+function node_form_add_preview($form, $edit) {
$edit = array2object($edit);
node_validate($edit);
$form['node_preview'] = array('#value' => node_preview($edit), '#weight' => -100);