Active
Project:
Block Inject
Version:
7.x-1.2-rc1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2017 at 12:20 UTC
Updated:
1 Feb 2017 at 23:13 UTC
Jump to comment: Most recent
Comments
Comment #2
algazaras commentedHi again,
Could someone please help me? I'd like to use this module to insert a block in a field, which is not the body field. Is this possible?
Thanks a lot
Comment #3
pmichelazzoUnfortunately yes, but if you make a patch, you can change for any multi-text field.
Change the line 168 from this
$node->content['body'][0]['#markup'] = $render;to this
$node->content['your_field_name'][0]['#markup'] = $render;and change the line 869 from this
$body = field_get_items('node', $node, 'body');To this
$body = field_get_items('node', $node, 'your_field_name');Best!