Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Apr 2010 at 23:51 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cafuego commentedAttached patch updates block.install to use provided defines and adds some defines for a cleaner block API.
Comment #2
cafuego commentedComment #3
casey commentedLooks good. You need to document constants separately however (have a look at node.module).
Also, I am not sure if this should be considered an API change (which then should go into D8).
Comment #4
cafuego commentedWell, since the defined values are the same and the integers still work I'd like to think of it as a cleanup instead of an API change ;-)
3rd party modules will still work fine even if they don't use the defines - though this might encourage module developers to tidy up their code too.
Updated patch with per-define documentation (shamelessly copied from admin/block) attached.
Comment #6
cafuego commentedFine, so I stuffed up a copy & paste. Fixed the patch, reattached, re-queued for testing.
Comment #7
casey commentedCode is good. I don't see this as an API change either. Let's see what Dries/webchick thinks.
Comment #8
dries commentedCommitted to CVS HEAD. Thanks.