Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.