By mixersoft on
I'm using the publishing module, somewhat hacked up to work with 5.x. In it there is a filetered view which I have renamed "ops/mine" that shows the a summary reports of workflows which belong to the current user -- it works fine if I type it in as a URL.
I'd like to put this view in the menu system, but I can't seem to figure out how to direct the menu callback to return the view. Here's my modified code:
$items[] = array(
'path' => 'ops/status', // this is the path for the menu item
// 'path' => 'ops/mine', // this is the path to the view, I can type it in and it works fine as a path
'title' => t('My Order Status'),
'callback' => 'workflow_client_page',
'access' => array_intersect($roles, array('client')),
'weight'=> 4,
'type' => MENU_NORMAL_ITEM,
);
function workflow_client_page() {
// what do I put in here to return the view at path 'ops/mine'???
}