You are here

function hook_addtocal_extract_event_info_alter in Add to Cal 7

Alter the addtocal info array.

Parameters

$info: An array representing the addtocal data used to generate the button information.

$entity_type: The current entity type to be rendered with addtocal button.

$entity: The current entity to be rendered with addtocal button.

1 invocation of hook_addtocal_extract_event_info_alter()
addtocal_extract_event_info in ./addtocal.module
Return event information in an associative array based on a given entity.

File

./addtocal.api.php, line 18
Hooks provided by the addtocal module.

Code

function hook_addtocal_extract_event_info_alter(&$info, $entity_type, $entity) {

  // Change the event description.
  $info['description'] = 'New event description';
}