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.
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
Comment #1
cindyr CreditAttribution: cindyr commentedConfirmed, 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.
Comment #2
dman CreditAttribution: dman commentedFixed, 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.