You are here

function addtocal_token_info_alter in Add to Cal 7

Same name and namespace in other branches
  1. 8.2 addtocal.module \addtocal_token_info_alter()

Implements hook_token_info_alter().

File

./addtocal.tokens.inc, line 10
Token module integration.

Code

function addtocal_token_info_alter(&$info) {
  $entities = addtocal_get_addtocal_entities();
  foreach ($entities as $entity_name => $fields) {
    foreach ($fields as $field_name => $display) {
      $info['tokens'][$entity_name][$field_name]['addtocal'] = array(
        'name' => t('Add to cal'),
        'description' => t("Rendered AddToCal html block, suitable for onsite use or in the body of an email message."),
        'module' => 'addtocal',
        'type' => 'date',
      );
    }
  }
}