summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
Diffstat (limited to 'modules/blog')
-rw-r--r--modules/blog/blog.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index c5fd506cd..d4e1171b1 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -74,7 +74,7 @@ function blog_help($path, $arg) {
*/
function blog_form($node, $form_state) {
global $nid;
- $type = node_get_types('type', $node);
+ $type = node_type_get_type($node);
$form['title'] = array('#type' => 'textfield', '#title' => check_plain($type->title_label), '#required' => TRUE, '#default_value' => !empty($node->title) ? $node->title : NULL, '#weight' => -5);
$form['body_field'] = node_body_field($node, $type->body_label, $type->min_word_count);