'dashboard/ajax/'. arg(2), 'title' => t('user item'), 'callback' => 'pms_ajax_employee', 'callback arguments' => array(), 'access' => TRUE, 'type' => MENU_CALLBACK, ); } else if(!$may_cache){ $items[] = array( 'path' => 'dashboard/ajax', 'title' => t('user item'), 'callback' => 'pms_ajax_dashboard', 'access' => TRUE, 'type' => MENU_CALLBACK, ); } if (!$may_cache && arg(0) == 'dashboard' && arg(1) == 'tasks' && is_numeric(arg(2))) { $items[] = array( 'path' => 'dashboard/tasks/'.arg(2), 'title' => t('user item'), 'callback' => 'pms_user_employee', 'callback arguments' => array(), 'access' => TRUE, 'type' => MENU_CALLBACK, ); } if (!$may_cache && arg(0) == 'dashboard' && arg(1) == 'projects' && is_numeric(arg(2))) { $items[] = array( 'path' => 'dashboard/projects/'. arg(2), 'title' => t('user item'), 'callback' => 'pms_user_employee_projects', 'callback arguments' => array(), 'access' => TRUE, 'type' => MENU_CALLBACK, ); } return $items; } function pms_user_employee_projects() { $block = views_view_block('employee_project_issues'); print $block['content']; exit(); } function pms_user_employee() { $block = views_view_block('employee_issues'); print '