[development] RFC: info hook standardization

Larry Garfield larry at garfieldtech.com
Mon May 19 19:06:16 UTC 2008


On Mon, 19 May 2008 11:23:02 -0700, Earl Miles <merlin at logrus.com> wrote:
> David Strauss wrote:
>> Great proposal.
>>
>> One addition: a way to invalidate the cache of an info hook if your
>> info hook does something like reading from a database table. This
>> would be the case if, say, your module generates a configurable set
>> of ad blocks.
> 
> You echoed my issue comment as well. It's very very important to be able
> to do this easily, IMO.

Ah, indeed!  Make that 2 more attributes of an info hook:

- It has a commonly-named rebuild function: drupal_rebuild_$singularNoun() (or something).
- drupal_rebuild_$singularNoun() is called as part of the master cache reset function.

--Larry Garfield



More information about the development mailing list