update core to 7.36
This commit is contained in:
@@ -249,6 +249,7 @@ function poll_form($node, &$form_state) {
|
||||
'#title' => check_plain($type->title_label),
|
||||
'#required' => TRUE,
|
||||
'#default_value' => $node->title,
|
||||
'#maxlength' => 255,
|
||||
'#weight' => -5,
|
||||
);
|
||||
|
||||
@@ -720,7 +721,6 @@ function poll_view_voting($form, &$form_state, $node, $block = FALSE) {
|
||||
'#type' => 'radios',
|
||||
'#title' => t('Choices'),
|
||||
'#title_display' => 'invisible',
|
||||
'#default_value' => -1,
|
||||
'#options' => $list,
|
||||
);
|
||||
}
|
||||
@@ -748,7 +748,7 @@ function poll_view_voting($form, &$form_state, $node, $block = FALSE) {
|
||||
* Validation function for processing votes
|
||||
*/
|
||||
function poll_view_voting_validate($form, &$form_state) {
|
||||
if ($form_state['values']['choice'] == -1) {
|
||||
if (empty($form_state['values']['choice'])) {
|
||||
form_set_error( 'choice', t('Your vote could not be recorded because you did not select any of the choices.'));
|
||||
}
|
||||
}
|
||||
@@ -925,7 +925,6 @@ function template_preprocess_poll_results(&$variables) {
|
||||
*
|
||||
* @see poll-bar.tpl.php
|
||||
* @see poll-bar--block.tpl.php
|
||||
* @see theme_poll_bar()
|
||||
*/
|
||||
function template_preprocess_poll_bar(&$variables) {
|
||||
if ($variables['block']) {
|
||||
|
||||
Reference in New Issue
Block a user