Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a view that shows content of some nodes, I want to add the "share" block to the node, so I used the following code in a php field:
$block = module_invoke('widgets', 'block_view', 's_addthis-share');
print render $block['content'];
But it shows data from the current url and not from the node.
Comments
Comment #0.0
jiddisch CreditAttribution: jiddisch commentedsyntax
Comment #0.1
jiddisch CreditAttribution: jiddisch commentedto*
Comment #1
elBradford CreditAttribution: elBradford commentedIf I were you I would use a page (panels) to do this.
Comment #1.0
elBradford CreditAttribution: elBradford commentedspelling