Definition

blog_form($node, $form_state)
drupal/modules/blog/blog.module, line 74

Description

Implementation of hook_form().

Code

function blog_form($node, $form_state) {
  global $nid;
  $type = node_get_types('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);
  return $form;
}