Voting starts in March for the Drupal Association Board election.
Block Machine Name is a small module that adds a machine name field to custom blocks (support for menu_blocks and imageblock is in the latest dev).
Its primary intent is to solve the problem of styling and rendering blocks that use numeric auto-increment ID's which may later not match their production values when the blocks are recreated later. Machine names can also be used to identify blocks in custom code.
If you give your custom block a machine name such as 'my_cool_block', the block will be given a class of 'block-my-cool-block' (underscores will be converted to dashes).
The module will also provide a template suggestion - in the above example, you could create a tpl named 'block--my-cool-block.tpl.php' (tpl files always use dashes).
Block Class will also allow you to get your own classes into a block, but these are not based on a unique ID, and no corresponding template suggestion is offered.
Features Extra also provides a machine name for blocks, but does not currently utilize the machine name for classes or template suggestions.
I have also tested running fe_blocks and Block Machine Name together - they should run together transparently just fine.
Thanks to the maintainers of Features Extra as this code is borrowed almost exclusively from their project.
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Theme Enhancements
- Reported installs: 1,395 sites currently report using this module. View usage statistics.
- Downloads: 3,428
- Last modified: August 25, 2015
- This project is not covered by the security advisory policy.
It may have publicly disclosed vulnerabilities. Use at your own risk!