Safari Browser

Primary tabs

Submitted by admin on Fri, 11/18/2011 - 07:35 - 0 Comments

Embed Drupal Views Using PHP

When theming Drupal and wanting to output a view there are occasions where using a view display (e.g. a page, or a block - perhaps placed within a custom region ;-) ), or using Views Attach will not suffice.

Instead, you can embed a view using the following PHP snippet:
(NOTE: you'll need to have the core PHP input filter enabled if embedding in a node body)

Categories: 
Requirements: 
Windows Requirements Any PC running Windows XP SP2 or Windows Vista or Windows 7 500-MHz Pentium-class processor or better 256MB of RAM Top Sites and Cover Flow require a compatible DirectX 9.0 video card with 64MB of video RAM. More details.
Site Ratings: 
0
No votes yet
User Ratings: 
Average: 4.9 (7 votes)
1 click