Hi, The title value is not set in the hook_form. Is this by design or a bug? (I would think bug) To fix add the default value (line 115 to 130):

/**
 * Implementation of hook_form().
 */
function microblog_form($node, &$form_state) {
  $type = node_type_get_type($node);
  
  $form['title'] = array(
    '#type' => 'textfield',
    '#title' => check_plain($type->title_label),
    '#required' => TRUE,
    '#maxlength' => 255,
    '#default_value' => check_plain($node->title),
  );

  return $form;
}

Comments

jeckman’s picture

Assigned: Unassigned » jeckman
jeckman’s picture

Status: Active » Reviewed & tested by the community

Added the default value - works now - will commit to 7.x dev branch in a sec

jeckman’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Committed changes to 7.x-2.x dev branch