[drupal-docs] [task] Update block_example.module to demo configuration

drewish drupal-docs at drupal.org
Sat Nov 5 22:07:28 UTC 2005


Issue status update for 
http://drupal.org/node/36490
Post a follow up: 
http://drupal.org/project/comments/add/36490

 Project:      Documentation
 Version:      <none>
 Component:    Developer Guide
 Category:     tasks
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  drewish
 Updated by:   drewish
 Status:       patch (code needs review)

I guess should mention that this is for 4.7 as it uses the new forms
API. It looks like the block configuration was added in 4.6 but not
documented in this example (I say that because the implementation of
hook_block() doesn't have the $edit parameter which was added before
the 4.6 branch).




drewish



Previous comments:
------------------------------------------------------------------------

Sat, 05 Nov 2005 21:57:16 +0000 : drewish

Attachment: http://drupal.org/files/issues/block_example.module.patch (5.24 KB)

I've rolled a patch to upate block_example.module so that it
demonstrates building and saving a block configuration form. I think
the code is okay but I'd like some feedback on the inline comments. I
tried to follow the tone of the existing code.







More information about the documentation mailing list