You are here

public function CaseTrackerCaseTypeController::create in Case Tracker 7.2

Parameters

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

Return value

A case type object with all default fields initialized.

Overrides EntityAPIController::create

File

./casetracker_case_type.inc, line 44
CaseTrackerCase type editing UI.

Class

CaseTrackerCaseTypeController
The Controller for Case entities

Code

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

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