Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
After a box save via the modal edit form, the block is rendered in boxes_footer() for the "page_bottom" region. Rendering the block as "page_bottom" can cause issues if the front end theme is targeting specific regions via block templates or preprocessing.
boxes_footer():
$block = boxes_block_view($_GET['boxes_delta']);
$block['module'] = 'boxes';
$block['region'] = 'page_bottom'; // <<< issue
$block['content'] = array('#markup' => $block['content']);
$block = (object) $block;
Potential fix:
Add "region" to the url parameters added to the edit link in boxes_block_view(). This would be ideal, however, determine the blocks region can be tricky if the block is being placed via the context module.
Comments
Comment #1
recrit CreditAttribution: recrit commented