The array passed to views_embed_views causes several notices:
Notice: Array to string conversion in DatabaseStatementBase->execute() (line 2171 of /var/www/lv/htdocs/includes/database/database.inc).
Warning: html_entity_decode() expects parameter 1 to be string, array given in decode_entities() (line 463 of /var/www/lv/htdocs/includes/unicode.inc).
Warning: html_entity_decode() expects parameter 1 to be string, array given in decode_entities() (line 463 of /var/www/lv/htdocs/includes/unicode.inc).
Warning: html_entity_decode() expects parameter 1 to be string, array given in decode_entities() (line 463 of /var/www/lv/htdocs/includes/unicode.inc).
As views_embed_views signature is ..., arg1, arg2, arg3, argN, the nid can be passed as a scalar.
Comments
Comment #2
heine commentedApologies, forgot the patch.
Comment #3
askibinski commentedLooks good, all the parameters after the second are indeed arguments for the view itself.
Comment #5
askibinski commentedCommitted, thanks!