function _clean_markup_blocks_generate_prefix in Clean Markup 7.2
Same name and namespace in other branches
- 7.3 modules/clean_markup_blocks/clean_markup_blocks.module \_clean_markup_blocks_generate_prefix()
- 7 modules/clean_markup_blocks/clean_markup_blocks.module \_clean_markup_blocks_generate_prefix()
Helper function to generate a unique variable name for a block.
Parameters
string $module: The name of the module providing this block.
string $delta: The delta of this block in this module.
Return value
string The unique name of the variable corresponding to the block identified by the parameters.
4 calls to _clean_markup_blocks_generate_prefix()
- CleanMarkupBlocksTestCase::testGeneratePrefix in modules/
clean_markup_blocks/ clean_markup_blocks.test - Test _clean_markup_blocks_generate_prefix().
- clean_markup_blocks_form_alter in modules/
clean_markup_blocks/ clean_markup_blocks.module - Implements hook_form_alter().
- clean_markup_blocks_preprocess_block in modules/
clean_markup_blocks/ clean_markup_blocks.module - Implements MODULE_preprocess_HOOK().
- _clean_markup_blocks_block_configure_submit in modules/
clean_markup_blocks/ clean_markup_blocks.module - Form submit handler for block_admin_configure() and block_add_block_form().
File
- modules/
clean_markup_blocks/ clean_markup_blocks.module, line 206 - Provides clean block markup.
Code
function _clean_markup_blocks_generate_prefix($module, $delta) {
return 'clean_markup_blocks--' . $module . '-' . $delta;
}