You are here

function hook_repeating_date_update in Date Repeat Entity 7

Same name and namespace in other branches
  1. 7.2 date_repeat_entity.api.php \hook_repeating_date_update()

Used to update a date instance in a date series.

Parameters

object $date_entity: An instance of a date entity in a series.

object $updated_entity: The updated entity.

1 function implements hook_repeating_date_update()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

date_repeat_entity_repeating_date_update in includes/date_repeat_entity.update.inc
Implements hook_repeating_date_update().
1 invocation of hook_repeating_date_update()
_date_repeat_entity_update_dates in includes/date_repeat_entity.update.inc
Update dates associated with a repeating date series.

File

./date_repeat_entity.api.php, line 90
Hooks provided by the Date Repeat Entity module.

Code

function hook_repeating_date_update($date_entity, $updated_entity, $entity_type = 'node') {
  $date_entity_wrapper = entity_metadata_wrapper($entity_type, $date_entity);
  $updated_entity_wrapper = entity_metadata_wrapper($entity_type, $updated_entity);

  // Update date entity title from updated entity.
  $date_entity_wrapper->title = $updated_entity_wrapper
    ->label();
}