You are here

function casetracker_project_page_view in Case Tracker 7.2

Sets up content to show an individual casetracker_project @todo - get rid of drupal_set_title();

1 string reference to 'casetracker_project_page_view'
CaseTrackerProjectUIController::hook_menu in includes/controller/ui/CaseTrackerProjectUIController.inc
Overrides hook_menu() defaults. Main reason for doing this is that parent class hook_menu() is optimized for entity type administration.

File

./casetracker_project.inc, line 147
This file concentrates all general functionality related to Projects in Case Tracker, leaving to the other files in /admin the stuff related to CRUD and structural configuration

Code

function casetracker_project_page_view(CaseTrackerProject $project, $view_mode = 'full') {
  drupal_set_title($project->title);
  casetracker_project_set_breadcrumb();
  return entity_view('casetracker_project', array(
    $project->pid => $project,
  ), $view_mode, NULL, TRUE);
}