Hi,
in file webform.module line 1515 we should have also redeclare $type variable from previous declaration in code above where $type = "error" to $type = "status". Even more if we don't have permission to submit form more then x time and we have permission to view previous submissions that would be great to have redirect option. We can redirect user to submissions form view directly.

if ($submission_count > 0 && $node->webform['submit_notice'] == 1 && !$cached) {
if (empty($message)) {
/*=========== add $type = 'status' or better: drupal_goto(url('node/' . $node->nid . '/submissions')) and eventually message that you can't submit more forms ============= */
$message = t('You have already submitted this form.') . ' ' . t('View your previous submissions.', array('!url' => url('node/' . $node->nid . '/submissions')));
}
else {
$message .= ' ' . t('View your previous submissions.', array('!url' => url('node/' . $node->nid . '/submissions')));
}

Comments

quicksketch’s picture

Category: bug » feature

This is a feature request, not a bug. Formatting this as a patch would make it easier to review: http://drupal.org/patch

quicksketch’s picture

Status: Active » Closed (won't fix)

We probably won't be adding this option.