Pass additional parameters as view arguments

dropcube - February 3, 2009 - 19:24
Project:Component
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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.

#1

Crell - February 3, 2009 - 22:00

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

#2

dropcube - February 4, 2009 - 00:43
Category:feature request» task
Status:active» needs review

Attached a patch. It's simple.

AttachmentSize
component_get_view-368667-2.patch 820 bytes

#3

jerdavis - April 8, 2009 - 20:07

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

Thanks Crell!

Jer

AttachmentSize
component_views.patch 761 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.