not sure if this is specific to my view, which is using a 'geofield map' format... but when I add it to a webform using the 'block' display. The webform component is rendered as the text 'Array' in the front end. Just did a <?php dpm($variables); ?> with the devel module from within the theme_webform_view_embedded function. I see the $variables['element']['view']['#markup'] value is an array with 'content' and 'subject' keys, like a block render array I believe, rather than '#markup'.

Comments

cindyr’s picture

Confirmed, I have the same problem. My view is a standard fields-view of nodes. As a block, it renders as just one word, "Array". When created as a page, it works fine.

dman’s picture

Issue summary: View changes
Status: Active » Fixed

Fixed, and I'm not getting this with todays dev.
I can embed a block just as well as 'master' or a page.
It looks like it got fixed due to a small API change between using $view->execute_display() which got deprecated, and $view->preview() which is apparently safer.

So that's good. Fixed in -dev. Get it in the next re-roll.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.