You are here

function tokenuuid_token_info in Token UUID 8

Implements hook_token_info().

File

./tokenuuid.module, line 35
Contains tokenuuid.module.

Code

function tokenuuid_token_info() {
  $info['tokens'] = [];
  foreach (tokenuuid_get_contententitytype_id() as $entity_id) {
    $info['tokens'][$entity_id]['uuid'] = [
      'name' => t('@entity_id UUID', [
        '@entity_id' => $entity_id,
      ]),
      'description' => t('The Universal Unique Identifier of @entity_id', [
        '@entity_id' => $entity_id,
      ]),
    ];
  }
  return $info;
}