Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Boxes load calls hook boxes_load_alter which replaces the box with the correct overridden box if it is implemented in a space. However boxes that are implemented only in the space are not returned. This can be resolved by calling get() with no parameters on the boxes controller.
If you are working with spaces dashboard, then boxes does essentially the same thing by checking for the "spaces_dashboard_admin_form".
Comment | File | Size | Author |
---|---|---|---|
#1 | boxes_load_spaces_boxes-1252130-1.patch | 1.09 KB | rbrandon |
Comments
Comment #1
rbrandon CreditAttribution: rbrandon commentedPatch that loads the spaces blocks if you are in a space and uses the standard ctools export load otherwise. Note that spaces->get() calls the ctools load as well to get it's original values.
Comment #2
emackn CreditAttribution: emackn commentedneed steps to reproduce the problem.
Comment #3
rbrandon CreditAttribution: rbrandon commentedCreate a box in a spaces context. The box gets serialized and put into the spaces_overrides table. Since the box never exists in the boxes table the boxes load does not load it.
Comment #4
rbrandon CreditAttribution: rbrandon commented