summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-03-14 20:13:27 +0000
committerDries Buytaert <dries@buytaert.net>2009-03-14 20:13:27 +0000
commitb46e90ad366c57095183891de56894d6a449bc14 (patch)
treeef143eea19b24d749d790b95c82658c02fb444e4 /modules/node/node.module
parentc85fa2b0e17d59b826c8ed51cd888fe8adae249a (diff)
downloadbrdo-b46e90ad366c57095183891de56894d6a449bc14.tar.gz
brdo-b46e90ad366c57095183891de56894d6a449bc14.tar.bz2
- Patch #322344 by merlinofchaos, Frando, catch, sun: form improvements from Views.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 7cdcdea0c..a83cfbdc5 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -293,7 +293,7 @@ function node_mark($nid, $timestamp) {
* See if the user used JS to submit a teaser.
*/
function node_teaser_js(&$form, &$form_state) {
- if (isset($form['#post']['teaser_js'])) {
+ if (isset($form_state['input']['teaser_js'])) {
// Glue the teaser to the body.
if (trim($form_state['values']['teaser_js'])) {
// Space the teaser from the body
@@ -330,8 +330,8 @@ function node_teaser_js(&$form, &$form_state) {
function node_teaser_include_verify(&$form, &$form_state) {
$message = '';
- // $form['#post'] is set only when the form is built for preview/submit.
- if (isset($form['#post']['body']) && isset($form_state['values']['teaser_include']) && !$form_state['values']['teaser_include']) {
+ // $form_state['input'] is set only when the form is built for preview/submit.
+ if (isset($form_state['input']['body']) && isset($form_state['values']['teaser_include']) && !$form_state['values']['teaser_include']) {
// "teaser_include" checkbox is present and unchecked.
if (strpos($form_state['values']['body'], '<!--break-->') === 0) {
// Teaser is empty string.