Is there a way to determine a block's module given only the block's delta? I'm hoping for a solution that does not require a custom query.
Use case:
We are enabling our client to decide which blocks are displayed on a given content type. Those options include blocks created through the block admin interface and blocks created through the views admin. From what I can tell, a regular block and a view's block are rendered differently so psuedo code would be something like.
// In preprocessing
if($block_module === 'views') {
// do view rendering
} else {
// do normal block rendering
}
Any ideas?
block--[module-1].tpl.php
andblock--[module-2].tpl.php
)block--views.tpl.php
andblock.tpl.php
can render differently.