I noticed that blocks added to a panel page are missing certain behavior, specifically the DHTML Menu markup that allows to open/collapse submenus.

By adding the following line into ctools_block_content_type_render right before the block is returned (line 123) this can be fixed

  module_invoke_all('preprocess_block', array('block' => $block));

Comments

merlinofchaos’s picture

Hmm. That preprocess is about block theming.

If you then choose the 'block' style, that code will run twice, which could be bad.

It's an interesting dilemma, I'm not sure the right solution just yet.

jhm’s picture

I was worried about that as well. And of course I did not check into the block style. Setting it to System Block does exactly what my crappy little patch does :(

There are other modules that try to muck with blocks (block_refresh for example) which don't fire, even if the style is System Block ... different case, though

I think this particular issue should be closed, however, since the desired effect can be achieved by setting the block style.

jhm’s picture

Status: Active » Closed (works as designed)

I am closing this because I believe ctools works as designed