summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-04 03:33:29 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-04 03:33:29 +0000
commitcab88a70149d7a1302d1e1e930fc19f909086a25 (patch)
treeae64e7c211fc6150dfac0a1fdb456ba893c02aca /modules/blog
parent6fc4eb9f945ecd7c2bea4742e3febe4632c88e99 (diff)
downloadbrdo-cab88a70149d7a1302d1e1e930fc19f909086a25.tar.gz
brdo-cab88a70149d7a1302d1e1e930fc19f909086a25.tar.bz2
#220233 by Berdir, marcingy, et al: Add useful API functions for extracting node type data.
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);