All pastes #493158 Raw Edit

Anonymous

public php v1 · immutable
·published 2007-05-17 16:49 UTC
rendered paste body
The issue here is employee_issues, it's a view that takes a user arguement, so I'd like to pass a user to it, and have it return just that one user, instead of making new views for each employee (which I've already got it all working, I just need to figure out how to pass the arguement in code like this) I was reading the handbook and tried the code outlined there, but apparently I'm mis-interpretting something because this barfs, so...  help?<?php$clear = '<div style="clear:both"></div> ';$project_view = views_get_view('project_issues');$employee_view = views_get_view('employee_issues');$client_view = views_get_view('client_issues');$form = array();  $form['pm'] = array(    '#type' => 'tabset',  );  $form['pm']['Projects'] = array(    '#type' => 'tabpage',    '#title' => t('Projects'),    '#content' => $clear . views_build_view('embed', $project_view),  );  $form['pm']['Employees'] = array(    '#type' => 'tabpage',    '#title' => t('Employees'),    '#content' => $clear . views_build_view('embed', $employee_view, 6),  );  $form['pm']['Clients'] = array(    '#type' => 'tabpage',    '#title' => t('Clients'),    '#content' => $clear . views_build_view('embed', $client_view),  );  return tabs_render($form);?>