theme_poll_results

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/poll/poll.module, строка 426

Версии
5
theme_poll_results($title, $results, $votes, $links, $block, $nid, $vote)

Код

<?php
function theme_poll_results($title, $results, $votes, $links, $block, $nid, $vote) {
  if ($block) {
    $output .= '<div class="poll">';
    $output .= '<div class="title">'. $title .'</div>';
    $output .= $results;
    $output .= '<div class="total">'. t('Total votes: %votes', array('%votes' => $votes)) .'</div>';
    $output .= '</div>';
    $output .= '<div class="links">'. theme('links', $links) .'</div>';
  }
  else {
    $output .= '<div class="poll">';
    $output .= $results;
    $output .= '<div class="total">'. t('Total votes: %votes', array('%votes' => $votes)) .'</div>';
    if (isset($vote) && $vote > -1 && user_access('cancel own vote')) {
      $output .= drupal_get_form('poll_cancel_form', $nid);
    }
    $output .= '</div>';
  }

  return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему