dazz
dazz

Reputation: 8742

drupal 5 multiple blocks in a module

is it possible to declare more than 1 block in a module?

I tried to create a extra module in a block by changing the name to mymodulename_first_block and mymodulename_second_block but then i can't see them in th list.

Upvotes: 1

Views: 265

Answers (1)

Nikit
Nikit

Reputation: 5128

Use $delta variable for this: http://api.drupal.org/api/function/hook_block/5
See example in bottom

Upvotes: 3

Related Questions