bratsun
10/29/2013 - 10:36 AM

Embed view with args

Embed view with args

views_embed_view('markers','block_1', implode('+',$args));
$view = views_get_view('opengraph');
$display_id = 'default';
$view->set_display($display_id);
//$view->set_arguments(array($element['#object']->nid));
$view->execute();
//print dpr($view->result);
print $view->result[0]->node_title;