【发布时间】:2015-11-09 11:37:51
【问题描述】:
我需要一些反馈表,可以在查看时投票,我正在尝试使用五星级来这样做。 Someting like this
但问题是一个用户只能投票一次。我已经搜索了一些solions并找到了一些东西。
这是为了创建一个自定义模块,然后隐藏五星级字段并使用函数中的一个,我的问题是我无法隐藏该字段。
这是隐藏旧的和打印新的代码。
hide($content['field_fivestar_rating']);// This line will hide the stars which are coming from the fivestar module.
print custom_voting_print_rating($node->nid, $content['field_fivestar_rating']);
print $user_picture;
print render($content);
所以我做了,但它不起作用。 hide($content['field_fivestar_rating']) 不起作用,已经尝试 hide($content['field_fivestar']);
问题是,如果我尝试打印 $content['field_fivestar_rating'] 它不会退出。
所以我要问的是,是否有人知道我应该做什么。 对不起我的英语不好。
【问题讨论】:
标签: drupal drupal-7 drupal-fivestar fivestar