<dt><?php 
echo a_('Email title template');
?>
</dt>
    <dd><?php 
echo aPollToolkit::getNotificationEmailTitlePartial($name);
?>
</dd>

    <dt><?php 
echo a_('Email body template');
?>
</dt>
    <dd><?php 
echo aPollToolkit::getNotificationEmailBodyPartial($name);
?>
</dd>

    <dt><?php 
echo a_('Display a security captcha?');
?>
</dt>
    <dd><?php 
echo aPollToolkit::getCaptchaDoDisplay($name) == true ? a_('Yes') : a_('No');
?>
</dd>

</dl>


 public static function listenToRequestParametersFilterEvent(sfEvent $event, $value)
 {
     $params = $event->getParameters();
     if (!aPollToolkit::getCaptchaDoDisplay($params['poll_type'])) {
         return array();
     }
     $captcha = array('recaptcha_challenge_field' => isset($value['recaptcha_challenge_field']) ? $value['recaptcha_challenge_field'] : null, 'recaptcha_response_field' => isset($value['recaptcha_response_field']) ? $value['recaptcha_response_field'] : null);
     return array('captcha' => $captcha);
 }