You are here

public function CaseTrackerProjectTypeController::create in Case Tracker 7.2

Parameters

$type: The machine-readable type of the project.

Return value

A project type object with all default fields initialized.

Overrides EntityAPIController::create

File

./casetracker_project_type.inc, line 44
CaseTrackerProject type editing UI.

Class

CaseTrackerProjectTypeController
The Controller for Project entities

Code

public function create(array $values = array()) {

  // Add values that are specific to our Project
  $values += array(
    'id' => '',
    'is_new' => TRUE,
  );
  $project_type = parent::create($values);
  return $project_type;
}