Tagged Questions
0
votes
0answers
10 views
Creating a newest comment block
So my site works like so:
An user of type 'Operator' creates new content of type 'Data' in which users of type 'Patient' are reference via a field User ID (machine name 'field_user_id') as well as ...
1
vote
1answer
43 views
How can I access the node ID when writing PHP into a block?
I see that when I am creating a block through the drupal admin I can use PHP, in addition to plain text & html. Is there a variable in scope that I can use to access the node id?
<?php echo ...
1
vote
2answers
68 views
Block rendering
Today I found a working php snippet to load block content into a node:
<?php
$block = block_load('block', '1');
$output = ...
2
votes
1answer
131 views
How to always show Poll results on most recent poll block?
I want to make a block that shows a poll that shows the results and with a link to vote to that particular poll.
It seems that the default most recent poll shows the results if the user doesn't have ...