function workbench_myworkbench in Workbench 7
Entry point for our overridden My Workbench.
This function asks its assigned handlers who, if anyone, would like to run with it. If no one does, it passes through to the main My Workbench.
1 string reference to 'workbench_myworkbench'
- workbench_myworkbench_menu_alter in plugins/
page_manager/ tasks/ myworkbench.inc - Callback defined by workbench_myworkbench_page_manager_tasks().
File
- plugins/
page_manager/ tasks/ myworkbench.inc, line 65
Code
function workbench_myworkbench() {
// Load my task plugin
$task = page_manager_get_task('myworkbench');
ctools_include('context');
ctools_include('context-task-handler');
$output = ctools_context_handler_render($task, '', array(), array());
if ($output !== FALSE) {
return $output;
}
module_load_include('inc', 'workbench', 'workbench.pages');
$function = 'workbench_content';
foreach (module_implements('page_manager_override') as $module) {
$call = $module . '_page_manager_override';
if (($rc = $call('workbench')) && function_exists($rc)) {
$function = $rc;
break;
}
}
// Otherwise, fall back.
return $function();
}