Active
Project:
What Would Seth Godin Do?
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
28 Aug 2008 at 03:51 UTC
Updated:
21 Jan 2014 at 18:57 UTC
Jump to comment: Most recent
Comments
Comment #1
sillygwailoComment #2
sillygwailoI'm making a 2.0 branch for this feature, still under development. Still work to be done on it, but the skeleton is in place if you check out DRUPAL-5--2 in CVS.
Comment #3
icecreamyou commentedCool. I like where this is going. I have a couple comments on the code:
In hook_block() under the 'save' op, this:
should be simplified to this (also you need single quotes around the %s or it's a security hole):
In the submit handler for the "confirm delete" form, you should return the destination instead of using
drupal_goto().Instead of
drupal_map_assoc(array(1,2,3,4,5,6,7,8,9,10))I would usedrupal_map_assoc(range(1, 10)).Other than that, what you've got looks good. Looking forward to it!
Comment #4
sillygwailoThe design of the block admin function is a little strange (I know, I wrote it), so I'm going to hold off on that change. The other simplification changes are committed, though.
Comment #5
sillygwailoComment #6
sillygwailoIn D7, hook_block_view_alter() or hook_block_info_alter() could conceivably let WWSGD modify any existing block's visibility depending on a counter.
Comment #7
mgiffordWorth looking at how to do that. Would be quite interesting to be able to have a few welcoming blocks.