Implements template_preprocess_HOOK() for poll-results.tpl.php.
$variables: An associative array containing:
The raw_* inputs to this are naturally unsafe; often safe versions are made to simply overwrite the raw version, but in this case it seems likely that the title and the links may be overridden by the theme layer, so they are left in with a different name for that purpose.
poll-results--block.tpl.php
function template_preprocess_poll_results(&$variables) {
$variables['links'] = theme('links__poll_results', array(
'links' => $variables['raw_links'],
));
if (isset($variables['vote']) && $variables['vote'] > -1 && user_access('cancel own vote')) {
$elements = drupal_get_form('poll_cancel_form', $variables['nid']);
$variables['cancel_form'] = drupal_render($elements);
}
$variables['title'] = check_plain($variables['raw_title']);
}