function copyright_block_token_info in Copyright Block module 8
Same name and namespace in other branches
- 7.2 copyright_block.module \copyright_block_token_info()
Implements hook_token_info().
File
- ./
copyright_block.module, line 8
Code
function copyright_block_token_info() {
$types['copyright_statement'] = [
'name' => t('Copyright statement'),
'description' => t('Tokens for the copyright statement block'),
];
$copyright_statement['dates'] = [
'name' => t('Dates'),
'description' => t('The start and end dates for the copyright statement.'),
];
return [
'types' => $types,
'tokens' => [
'copyright_statement' => $copyright_statement,
],
];
}