Closed (won't fix)
Project:
Documentation
Component:
Correction/Clarification
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2012 at 10:10 UTC
Updated:
2 Feb 2012 at 16:36 UTC
Describe why you are reporting http://drupal.org/node/751826 to moderators:
In "Creating Forms" example code,
$form['foo'] = array(
'#type' => 'textfield',
'#title' => t('bar'),
'#default_value' => $object['foo'],
'#size' => 60,
'#maxlength' => 64,
'#description' => t('baz'),
);
The '#default_value' => $object['foo'] does not work. instead,
'#default_value' => t('foo') worked for me.
Thought, I should point that out
Comments
Comment #1
jhodgdonI have added a link to this issue as a comment on the page -- as noted at the top of the page you landed on when you added this issue, we aren't currently using issues to report minor issues in Community Documentation pages. Feel free to edit the page and make the correction.