How to pass argument %nid to views ?
I use this code:
function magic_tabs_tom_callback($active = 0) {
$view_con = views_get_view('nodecomments_con');
$tabs[] = array(
'title' => t('Con '),
'content' => $view_con->execute_display('default', '3'),
);
Comments
Comment #1
tommytom commentedany ideas ?
Comment #2
yhager commentedhttp://api.drupal.org/api/function/menu_get_object/6
Comment #3
tommytom commentedhmmm
Comment #4
yhager commentedI'm sorry, I probably misunderstood the question. Is this a views issue? How is it related to magic tabs? Please add more details on your case, so I will be able to assist better, or refer you to the right documentation.
Comment #5
tommytom commentedI tried with this code, but it doesn't work. I get this error msg: Fatal error: Cannot use object of type stdClass as array in mysite\sites\all\modules\views\includes\view.inc on line 444
Comment #6
tommytom commentedI didn't know that the arguments have to be in an array.
now it works
Comment #7
tommytom commented