how to alter block subject html tag? I am trying to change the &lt;h2&gt; tags that block.tpl.php uses to wrap &lt;?php print $block-&gt;subject ?&gt; to &lt;h3&gt; tags so that I can target them with jQuery UI Accordion. I've got the following code:

&lt;?php
    function MYTHEME_block_view_alter(&amp;$data, $block) {
        if($block-&gt;module == 'block' &amp;&amp; $block-&gt;region == 'sidebar') {
            $data['subject']['#tag'] = 'h3';
        }
    }
?&gt;


This doesn't work...I assume I'm screwing up the reference to the render element. Does $data['subject'] contain an array where the HTML tag is stored? What is the correct way to target it?

Alternatively, should I look for a way to re-write block markup so that, in the sidebar region, it renders only the &lt;h3&gt; and &lt;div&gt; required by jQuery UI Accordion? Unless there's a fantastic module for turning blocks into Accordion-ready HTML already out there, I'd rather not install another module.

Many thanks for any help!
You can override the block template for a particular block and can modify the html for block subject.

You can check theme suggestions for more reference.