[support] setting different delta values for hook_block

Scott scott at bscottholmes.com
Fri Jun 4 21:21:47 UTC 2010


I don't mean to pass data with the delta value. But then again the q
parameter approach may be what I want anyway.  Thanks.


On Fri, 2010-06-04 at 14:11 -0700, Metzler, David wrote:
> No, the delta value is designed to distinquish between different blocks
> provided by the same module, and should not be used to pass data.  You
> can look at the url and make your own assumptions based on q= parameter
> and/or provide node load hooks to get data that is passed to the block
> via static variable caching or some other caching mechanism.  
> 
> I don't know if that's the "right" approach, but it's what I'd do. 
> 
> Dave
> 
> -----Original Message-----
> From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
> Behalf Of Scott
> Sent: Friday, June 04, 2010 1:03 PM
> To: Drupal Support
> Subject: [support] setting different delta values for hook_block
> 
> I'm developing a module that currently does not use the delta value in
> hook_block.  The view option merely displays a form for entering search
> criteria.  What I would like is for certain pages on the site to provide
> default search criteria and then display the search results.  My
> understanding is that this can be accomplished by setting the delta
> value.  I'm unclear on how and where to do this. I suspect this is a
> theme setting issue but I have not found examples.
> 
> --
> [ Drupal support list | http://lists.drupal.org/ ]



More information about the support mailing list