public function CaseTrackerCaseController::create in Case Tracker 7.2
Parameters
$type: The machine-readable type of the case.
Return value
A case object with all default fields initialized.
Overrides EntityAPIController::create
File
- includes/
controller/ CaseTrackerCaseController.inc, line 20
Class
- CaseTrackerCaseController
- The Controller for CaseTrackerCase entities
Code
public function create(array $values = array()) {
// Add values that are specific to our Case
$values += array(
'pid' => '',
'is_new' => TRUE,
'title' => '',
'language' => '',
'uid' => '',
'created' => '',
'changed' => '',
);
$case = parent::create($values);
return $case;
}