You are here

public function GroupController::create in Group 7

Create a group.

We first set up the values that are specific to the group schema but then also run the EntityAPIController counterpart.

Parameters

array $values: An array of values to set, keyed by property name.

Return value

Group A new Group instance.

Overrides EntityAPIController::create

File

classes/group.controller.inc, line 162
Defines the Entity API CRUD class for groups.

Class

GroupController
Controller for group entities.

Code

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

  // Provide defaults that are needed in group_form().
  $values += array(
    'type' => '',
    'title' => '',
  );
  return parent::create($values);
}