Describe why you are reporting http://drupal.org/node/751826 to moderators:

In "Creating Forms" example code,

<?php
$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

Status:Active» Closed (won't fix)

I 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.