Closed (fixed)
Project:
Advanced Poll
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 May 2007 at 16:06 UTC
Updated:
3 Oct 2012 at 15:33 UTC
Hello, I'd like to modify the theme_advpoll_block_mostrecent() to do the following: I need to hide the body content of the poll and display only the title and choices (of course with possibility to vote in the block).
I know, I have to replace the line 57 in advpoll.module:
$output .= drupal_render($node->content);
But I don't know what to write instead. Any ideas?
Comments
Comment #1
anders.fajerson commentedYou can put
unset($node->content['body']);just before$output .= drupal_render($node->content);Comment #2
(not verified) commentedComment #3
WeRockYourWeb.com commentedHow would this work in Drupal 6? I've got:
In my template.php file, but that doesn't seem to work.