Skip to content

Commit

Permalink
Merge pull request #41 from argiepiano/1.x-2.x-issue-40
Browse files Browse the repository at this point in the history
Issue #40. Fix typo
  • Loading branch information
argiepiano authored Oct 10, 2022
2 parents 63ef627 + 30b5d8b commit 51721a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity_token.tokens.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function entity_token_token_info_alter(&$info) {
$token_type_for_entity = isset($entity_info_array['token type']) ? $entity_info_array['token type'] : $entity_name;

// Create token types for all non-core entities that don't already exist.
if (!_entity_token_is_core_entity($entity_name) && !isset(['types'][$token_type_for_entity])) {
if (!_entity_token_is_core_entity($entity_name) && !isset($info['types'][$token_type_for_entity])) {
$info['types'][$token_type_for_entity] = array(
'name' => $entity_info[$entity_name]['label'],
'description' => t('Tokens related to the "@name" entities.', array('@name' => $entity_info[$entity_name]['label'])),
Expand Down

0 comments on commit 51721a9

Please sign in to comment.