You are here

public function GAPushBrowserEventController::create in GA Push 7

Creates a GA Push Browser event.

Parameters

array $values: Intial values for the GA Push Browser event.

Return value

object A new GA Push Browser Event instance.

Overrides EntityAPIController::create

File

modules/browser/ga_push_browser.classes.inc, line 21
GA Push Browser event classes.

Class

GAPushBrowserEventController
CRUD controller for GA Push Browser events.

Code

public function create(array $values = array()) {
  $values += array(
    'id' => NULL,
    'name' => '',
    'status' => TRUE,
    'selector' => '',
    'bind' => '',
    'ga_category' => '',
    'ga_action' => '',
    'ga_label' => '',
    'ga_value' => '',
  );
  return parent::create($values);
}