Skip to content
Snippets Groups Projects
Commit 7ad1f0aa authored by Jeff Miccolis's avatar Jeff Miccolis
Browse files

Fixing issue where created, but unused, boxes are not visible.

parent d0880c86
No related branches found
Tags 6.x-1.0-beta2
No related merge requests found
......@@ -368,12 +368,12 @@ function boxes_context_block_info_alter(&$blocks) {
// page within a space.
if (!(isset($item['page_callback'], $item['page_arguments'][0]) && $item['page_callback'] === 'drupal_get_form' && $item['page_arguments'][0] === 'spaces_dashboard_admin_form')) {
foreach ($space->controllers->boxes->get() as $box) {
if (isset($blocks[$box->delta])) {
$blocks["boxes-{$box->delta}"] = array_merge($blocks[$box->delta], array('info' => $box->description));
}
else {
$blocks["boxes-{$box->delta}"] = array('info' => $box->description, 'cache' => BLOCK_NO_CACHE);
}
$add = new stdClass();
$add->bid = "boxes-{$box->delta}";
$add->info = $box->description;
$add->cache = BLOCK_NO_CACHE;
$add->module = 'boxes';
$blocks[$add->bid] = $add;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment