You are here

public function WsConfigController::create in Web Service Data 7

Create a wsconfig - we first set up the values that are specific to our wsconfig schema but then also go through the EntityAPIController function.

Parameters

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

Return value

A wsconfig object with all default fields initialized.

Overrides EntityAPIController::create

File

modules/wsconfig/wsconfig.entity.inc, line 266
Entity classes

Class

WsConfigController
The Controller for WsConfig entities

Code

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

  // Add values that are specific to our WsConfig
  $values += array(
    'wsconfig_id' => '',
    'name' => '',
    'is_new' => TRUE,
    'title' => '',
    'created' => '',
    'changed' => '',
    'data' => array(),
  );
  $wsconfig = parent::create($values);
  return $wsconfig;
}