Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi
I am working on a drupal 7 view
I am trying to embed a view in a php field and it's not working.
How can I do that ?
Here is my code:
$view = views_get_view('view-name');
$myarg = array();
$display = $view->execute_display('block', $myargs);
print $display['content'];
Thanks
Comments
Comment #1
hoZt CreditAttribution: hoZt commentedHave you tried viewfield? This module should do want you want.
Comment #2
creatile CreditAttribution: creatile commentedI think that viewfield is not stable for Drupal 7 but I adchieved to embed a view in a block with views php
Thanks
Comment #3
Liam Morland