public function GProfileTypeController::create in Group 7
Create a profile type.
We first set up the values that are specific to the profile type schema but then also run the EntityAPIControllerExportable counterpart.
Parameters
array $values: An array of values to set, keyed by property name.
Return value
GProfileType A new GProfileType instance.
Overrides EntityAPIController::create
File
- modules/
gprofile/ classes/ gprofile_type.controller.inc, line 83 - Defines the Entity API CRUD class for group member profile types.
Class
- GProfileTypeController
- Controller for group member profile type entities.
Code
public function create(array $values = array()) {
// Provide defaults that are needed in gprofile_type_form().
$values += array(
'name' => '',
'label' => '',
);
return parent::create($values);
}