You are here

function theme_webform_advanced_submit_limit_form in Webform 5.2

Same name and namespace in other branches
  1. 6.3 includes/webform.pages.inc \theme_webform_advanced_submit_limit_form()
  2. 6.2 webform.module \theme_webform_advanced_submit_limit_form()
  3. 7.4 includes/webform.pages.inc \theme_webform_advanced_submit_limit_form()
  4. 7.3 includes/webform.pages.inc \theme_webform_advanced_submit_limit_form()

Theme the submit limit fieldset on the webform node form.

1 theme call to theme_webform_advanced_submit_limit_form()
webform_form in ./webform.module
Implementation of hook_form(). Creates the standard form for editing or creating a webform.

File

./webform.module, line 777

Code

function theme_webform_advanced_submit_limit_form($form) {
  $form['submit_limit']['#attributes']['class'] = 'webform-set-active';
  $form['submit_interval']['#attributes']['class'] = 'webform-set-active';
  $replacements = array(
    '!count' => drupal_render($form['submit_limit']),
    '!timespan' => drupal_render($form['submit_interval']),
  );
  $form['enforce_limit']['no']['#prefix'] = '<div class="container-inline">';
  $form['enforce_limit']['no']['#suffix'] = '</div>';
  $form['enforce_limit']['yes']['#prefix'] = '<div class="container-inline">';
  $form['enforce_limit']['yes']['#suffix'] = '</div>';
  $form['enforce_limit']['yes']['#title'] = t('Limit to !count submission(s) !timespan', $replacements);
  return drupal_render($form);
}