Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
field_collection
Commits
99ef0fed
Commit
99ef0fed
authored
Oct 22, 2015
by
ehegedus
Committed by
Joel Muzzerall
Oct 22, 2015
Browse files
Issue #2597027 by ehegedus: Tokens Problems detected
parent
197f516a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
field_collection.tokens.inc
field_collection.tokens.inc
+5
-0
No files found.
field_collection.tokens.inc
View file @
99ef0fed
...
...
@@ -50,6 +50,11 @@ function field_collection_token_info() {
* Inject an additional 'host' token to the 'field_collection_item' token type.
*/
function
field_collection_token_info_alter
(
&
$data
)
{
$data
[
'types'
][
'field_collection_item'
]
=
array
(
'name'
=>
t
(
'Field collection'
),
'description'
=>
t
(
'Tokens related to field collection.'
),
'needs-data'
=>
'field_collection_item'
,
);
$data
[
'tokens'
][
'field_collection_item'
][
'host'
]
=
array
(
'name'
=>
t
(
'Host entity'
),
'description'
=>
t
(
'The host entity of this field collection item.'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment