component_get_view($view_name, $display) Outputs a views based on the view and display name, but do not pass additional parameters as view arguments to the view. It uses views_embed_view which will pass any additional parameters as arguments. Would be good to have this feature.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | component_views.patch | 761 bytes | jerdavis |
| #2 | component_get_view-368667-2.patch | 820 bytes | dropcube |
Comments
Comment #1
Crell commentedYes. Patches welcome. :-) (It was upgraded in a hurry.)
Comment #2
dropcube commentedAttached a patch. It's simple.
Comment #3
jerdavisTried this patch and had an issue so I made a couple tweaks - the attached is working for me.
Thanks Crell!
Jer
Comment #4
Oleksa-1 commentedTried patch - works as expected. Thx!
Comment #5
Crell commented#3 is not a valid patch. #2 is, though, and I couldn't tell what's different, so I committed that. Thanks, dropcube!