summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2016-01-30 16:22:38 -0500
committerDavid Rothstein <drothstein@gmail.com>2016-01-30 16:22:38 -0500
commitc661e1ced49b0db715a3a601c4ba3dfc78fb349d (patch)
tree3968679c8609998270b02df9f98ab3191d22e09b /modules
parentbdd6ba5a6a2f901a7903491cff66d2a1e43ec76e (diff)
downloadbrdo-c661e1ced49b0db715a3a601c4ba3dfc78fb349d.tar.gz
brdo-c661e1ced49b0db715a3a601c4ba3dfc78fb349d.tar.bz2
Issue #2601116 by heykarthikwithu: Remove various unused variables from the Poll module
Diffstat (limited to 'modules')
-rw-r--r--modules/poll/poll.module8
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index bfc72bf93..336e44563 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -631,9 +631,6 @@ function poll_delete($node) {
* The node object to load.
*/
function poll_block_latest_poll_view($node) {
- global $user;
- $output = '';
-
// This is necessary for shared objects because PHP doesn't copy objects, but
// passes them by reference. So when the objects are cached it can result in
// the wrong output being displayed on subsequent calls. The cloning and
@@ -674,9 +671,6 @@ function poll_block_latest_poll_view($node) {
* Implements hook_view().
*/
function poll_view($node, $view_mode) {
- global $user;
- $output = '';
-
if (!empty($node->allowvotes) && empty($node->show_results)) {
$node->content['poll_view_voting'] = drupal_get_form('poll_view_voting', $node);
}
@@ -694,7 +688,7 @@ function poll_view($node, $view_mode) {
function poll_teaser($node) {
$teaser = NULL;
if (is_array($node->choice)) {
- foreach ($node->choice as $k => $choice) {
+ foreach ($node->choice as $choice) {
if ($choice['chtext'] != '') {
$teaser .= '* ' . check_plain($choice['chtext']) . "\n";
}