You are here

public function CaseTrackerProjectController::create in Case Tracker 7.2

Parameters

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

Return value

A project object with all default fields initialized.

Overrides EntityAPIController::create

File

includes/controller/CaseTrackerProjectController.inc, line 20

Class

CaseTrackerProjectController
The Controller for CaseTrackerProject entities

Code

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

  // Add values that are specific to our Project
  $values += array(
    'pid' => '',
    'is_new' => TRUE,
    'title' => '',
    'language' => '',
    'uid' => '',
    'created' => '',
    'changed' => '',
  );
  $project = parent::create($values);
  return $project;
}