Create a block from a custom module : We use Drupal hooks to create a block from custom module. In Drupal 6, hook_block() was used. This function has been redefined …
Tag: Drupal
How to add First and Last CSS class to Drupal blocks
If you’re a themer looking to style blocks when its the first or last block in the region, use the following code snippet. /** * Returns a list of blocks. …