You are here

function hook_opening_hours_presave in Opening hours 7

Allows modules to alter Opening hours instances before saving them.

Parameters

$updated_instance: The updated Opening hours instance as an object.

$instance: The old Opening hours instance as an object. If this object is NULL, then it is a new instance that is getting saved.

2 invocations of hook_opening_hours_presave()
opening_hours_crud_api_page in includes/opening_hours.pages.inc
The CRUD API for communication with Backbone.
opening_hours_instance_id_api_page in includes/opening_hours.pages.inc
The CRUD API for a specific instance ID.

File

./opening_hours.api.php, line 18
Documenting Opening hours hooks.

Code

function hook_opening_hours_presave($updated_instance, $instance) {

  // No example.
}