public function PopupOnLoadController::create in Popup On Load 7
Create a popup_onload.
Overrides EntityAPIController::create
See also
File
- ./
popup_onload.entity.inc, line 50 - Popupad entity model and controller classes.
Class
- PopupOnLoadController
- PopupOnLoadControllerController extends DrupalDefaultEntityController.
Code
public function create(array $values = []) {
// Add values that are specific to our popup_onload.
$values += [
'popup_id' => '',
'bundle_type' => 'popup_onload_basic',
'is_new' => TRUE,
'language' => '',
'name' => '',
'body' => '',
'format' => '',
'width' => 0,
'height' => 0,
'fixed_position' => 0,
'active_popup' => 1,
];
$popup_onload = parent::create($values);
return $popup_onload;
}