template_preprocess_poll_vote
modules/poll/poll.module, строка 620
- Версии
- 6
template_preprocess_poll_vote(&$variables)
Themes the voting form for a poll.
Inputs: $form
Код
<?php
function template_preprocess_poll_vote(&$variables) {
$form = $variables['form'];
$variables['choice'] = drupal_render($form['choice']);
$variables['title'] = check_plain($form['#node']->title);
$variables['vote'] = drupal_render($form['vote']);
$variables['rest'] = drupal_render($form);
$variables['block'] = $form['#block'];
// If this is a block, allow a different tpl.php to be used.
if ($variables['block']) {
$variables['template_files'][] = 'poll-vote-block';
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии