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.

CommentFileSizeAuthor
block_example.module.patch5.24 KBdrewish

Comments

drewish’s picture

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’s picture

Assigned: Unassigned » drewish
Status: Needs review » Fixed

Committed changes to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)