to reproduce, use the function hook_block_view_alter and add a dpm() call to any module (with DEVEL enabled):

function MODULENAME_block_view_alter(&$data, $block) {
  dpm($block);
}

You will see that krumo loads the block info twice. By removing the calls to fusion_core_block_list() in fusion_core_grid_info(), it loads them only once. It seems to be because block_list calls out to _block_render_blocks (which is needed here to determine if there is content in the block and if it should be listed). This behavior problematic because loading anything such as drupal_add_css or drupal_add_js in a block_view_alter, causes it to load twice on the page.

Of course, you can band-aid the problem by writing a bit of php that assures the function only loads once, however it shouldn't be necessary and will affect many module developers that use fusion.

Comments

KrisBulman’s picture

Issue summary: View changes

code block addition

KrisBulman’s picture

Issue summary: View changes

clarification to ticket

KrisBulman’s picture

Issue summary: View changes

clarification

KrisBulman’s picture

Issue summary: View changes

clarification

KrisBulman’s picture

Issue summary: View changes

more clarification

KrisBulman’s picture

Issue summary: View changes

changed to dpm

KrisBulman’s picture

Issue summary: View changes

typo

webkenny’s picture

Status: Active » Closed (duplicate)

Another issue exists to discuss this. It's #1172280: Fusion themes render blocks twice but I've moved your comments there with some of my own and we'll continue in there. Thanks for reporting it. Looking forward to resolving together.

webkenny’s picture

Issue summary: View changes

clarification