diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-25 12:07:14 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-25 12:07:14 +0000 |
commit | de1c51958c903f66cd2f667e4b2a5a5749570dad (patch) | |
tree | 9cbc7be2955cce6ccf1524021ddddbcd57c0a170 | |
parent | a8d2453b178fd2a29edb41a4a0e936bc08bb999a (diff) | |
download | brdo-de1c51958c903f66cd2f667e4b2a5a5749570dad.tar.gz brdo-de1c51958c903f66cd2f667e4b2a5a5749570dad.tar.bz2 |
#176367 by chx: not all node type have body labels, so this might not be set
-rw-r--r-- | modules/node/content_types.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 0d8d0adec..71787ff2f 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -129,7 +129,7 @@ function node_type_form(&$form_state, $type = NULL) { $form['submission']['body_label'] = array( '#title' => t('Body field label'), '#type' => 'textfield', - '#default_value' => $type->body_label, + '#default_value' => isset($type->body_label) ? $type->body_label : '', '#description' => t('To omit the body field for this content type, remove any text and leave this field blank.'), ); $form['submission']['min_word_count'] = array( |