Fix token error

This commit is contained in:
Oliver Davies 2024-04-15 07:49:30 +01:00
parent f6de1df830
commit d2ec2d4ab4

View file

@ -39,16 +39,15 @@ function opdavies_talks_views_data_alter(array &$data): void {
* Implements hook_token_info().
*/
function opdavies_talks_token_info(): array {
$info = [];
$info['types']['opdavies_talks'] = [
$types['opdavies_talks'] = [
'name' => t('Oliver Davies Talks'),
'description' => t('Custom tokens for the Oliver Davies Talks module.'),
];
$info['tokens']['opdavies_talks']['talk_count'] = 'ddd';
return $info;
return [
'types' => $types,
'tokens' => [],
];
}
/**