Closed (fixed)
Project:
Microblog
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Sep 2011 at 23:56 UTC
Updated:
9 Oct 2011 at 20:41 UTC
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
Comment #1
jeckman commentedComment #2
jeckman commentedAdded the default value - works now - will commit to 7.x dev branch in a sec
Comment #3
jeckman commentedCommitted changes to 7.x-2.x dev branch