Pass arguments to hook_block
Hello, I'm developing a module to show data related to actual node on a block. It's working and now I need to pass arguments to the block, is it possible? Something like an integer that comes form a select list. If it's not possible what's the way to do this? Thank's for all your work. Pol
On Mon, Feb 20, 2012 at 7:59 AM, Marolijo <marolijo@yahoo.es> wrote:
Hello, I'm developing a module to show data related to actual node on a block. It's working and now I need to pass arguments to the block, is it possible? Something like an integer that comes form a select list. If it's not possible what's the way to do this?
Does this work? http://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/arg/7 -- Earnie -- https://sites.google.com/site/earnieboyd
Well, "argument" usually implies something in the URL, which is certainly available to you [arg()]. If this is a node display, then menu_get_item() will load that node for you. Nancy
________________________________ From: Marolijo
Hello, I'm developing a module to show data related to actual node on a block. It's working and now I need to pass arguments to the block, is it possible? Something like an integer that comes form a select list. If it's not possible what's the way to do this?
participants (3)
-
Earnie Boyd -
Marolijo -
Ms. Nancy Wichmann