Can't figure out how to get Drupal to recognize blocks for specific custom content types (i.e blocks-[node-type].tpl.php).
Went through documentation on how to do it for page-[node-type].tpl.php, but can't seem to get it to work for block-[node-type].tpl.php.
Client wanted (to choose) a quote for each page on site:
* Created content type called "quotations"
* Created block-quotations.tpl.php
* Client would create quotes and enable them as blocks - and put them on page they want
* Blocks would automatically use the "block-quotations.tpl.php" to display the quotes in sidebar
But Drupal blocks do not recognize blocks by node-type.
Need to use preprocess function for block...
Thanks in advance!
:::::::::::::::::::::::::::::: current template.php :::::::::::::::::::::::::::::
In the theme folder, there is already a preprocess function for block:
function redrooster_preprocess_block(&$vars, $hook) {
$block = $vars['block'];
// Special classes for blocks.
$classes = array('block');
$classes[] = 'block-' . $block->module;
$classes[] = 'region-' . $vars['block_zebra'];
$classes[] = $vars['zebra'];
$classes[] = 'region-count-' . $vars['block_id'];
$classes[] = 'count-' . $vars['id'];
$vars['edit_links_array'] = array();
$vars['edit_links'] = '';