[development] starting...

Willians Pedroso willianspedroso at gmail.com
Wed Oct 31 12:12:49 UTC 2007


 Hi, John, thank you the response. :D
 Then, I am picked up the code the link that you envied, and fails. He not
recovers the data. :(
 I'm reading that may be the thema, this can occur?

thank you...

willians


On 10/31/07, John VanDyk <jvandyk at iastate.edu> wrote:
>
>  Hello, Willians. Welcome to Drupal. The code for the annotation module
> can be downloaded here
>
> http://www.drupalbook.com/files/7559ch02%20-%20Your%20First%20Module.zip
>
> in case you want to compare it to the code you are using. The code works
> by retrieving a note from the database and assigning the value to the node
> object. The node is then passed to the form function. It looks like you are
> passing only the annotation property and not the entire node. Your code:
>
> ...'#value' => drupal_get_form('annotate_entry_form', $node->annotation),
>
> what it should be:
>
> ...'#value' => drupal_get_form('annotate_entry_form', $node),
>
> This kind of question is best asked in the drupal.org support forums
> rather than on the development list.
>
> http://drupal.org/forum/18
>
> John
>
>  Hello, I'm Willians, living in Brazil and do not know English law, then
> not repair the errors. :D
>  I starting the develop for drupal, know a little of PHP, mysql. I am
> reading the book Pro Drupal Development, and the example of the book
> "chapter 2", I am not understanding the code right.
>  More specifically, the function where return the datas. that is
> annotate_nodeapi(&$node, $op, $teaser, $page), when return the result of the
> database, this code:
>          $node->annotation = db_result($result);
>  No is showing, the result in screnn, should be :
>
>       $node->content['annotation_form'] = array(
>
>         '#value' => drupal_get_form('annotate_entry_form',
> $node->annotation),
>         '#weight' => 10
>       );
>
>  Someone knows where my erros ??
>
>  Thank you, all... :D
>
> willians
>
> --
> http://www.ecommunita.com/
>
>
>


-- 
http://www.ecommunita.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20071031/078a50d8/attachment.htm 


More information about the development mailing list