In #503264: Limit the total number of submissions, we added total submission limit in addition to the existing per-user limit. However now we have a bunch of functions and variables named "submission_limit" which refer to the "per-user" limit, then other functions/variables named "total_submission_limit". It's confusing that the generic term is used to refer to the per-user limit and we should go through and update these functions and variables for consistency.

Attached are first passes at consistency changes.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Updating a few more instances in hook_theme() and in theme function calls. In #503264: Limit the total number of submissions I mentioned that the change broken existing theming of theme_webform_view_messages(), but only in D6. After these changes, the D7 theming also needs to be updated. However considering users that *don't* update their theming don't get any error message at all when the total limit is exceeded, I think this is fine. We really need a better way of adjusting user messages overall besides the theme system (or using the theme system in some other way).

quicksketch’s picture

Status: Needs review » Fixed

Committed to both 3.x versions.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

broon’s picture

Issue summary: View changes

Just a note since I stumbled upon that: in the database webform table, it still says "submit_limit" and "total_submit_limit" (same for the interval columns).