How to get and set the delta value?

How can I affect the value of the delta parameter? Where can it be installed?

I start with Drupal, but I know my way around PHP and other CMS applications, for example. Joomla I am working on my first drupal module and should create a module with several blocks. I know how to switch based on the $ op parameter, but the $ delta value is always the default value specified in the function declaration.

How can I choose which block to process and display? Can $ delta be set so that when using sub-navigation of modules, delta is used to switch to another type of block?

Thanks in advance.

+3
source share
1

hook_block() a . $op='list', , $op='view'.

$delta , . , , , , .

, .

+4

Source: https://habr.com/ru/post/1756910/


All Articles