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.

Comments

Crell’s picture

Yes. Patches welcome. :-) (It was upgraded in a hurry.)

dropcube’s picture

Category: feature » task
Status: Active » Needs review
StatusFileSize
new820 bytes

Attached a patch. It's simple.

jerdavis’s picture

StatusFileSize
new761 bytes

Tried this patch and had an issue so I made a couple tweaks - the attached is working for me.

Thanks Crell!

Jer

Oleksa-1’s picture

Status: Needs review » Reviewed & tested by the community

Tried patch - works as expected. Thx!

Crell’s picture

Status: Reviewed & tested by the community » Fixed

#3 is not a valid patch. #2 is, though, and I couldn't tell what's different, so I committed that. Thanks, dropcube!

Status: Fixed » Closed (fixed)

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