]*>)(.*?)(<\/div>)/s', '$2', drupal_render($form['submit_limit'])),
'!timespan' => preg_replace('/(
]*>)(.*?)(<\/div>)/s', '$2', drupal_render($form['submit_interval'])),
);
$form['enforce_limit']['yes']['#title'] = t('Limit to !count submission(s) !timespan', $replacements);
return drupal_render($form);
}
/**
* Theme the redirection setting on the webform node form.
*/
function theme_webform_advanced_redirection_form($form) {
// Add special class for setting the active radio button.
$form['redirect_url']['#attributes']['class'] = 'webform-set-active';
// Remove title and description for Redirect URL field.
$form['redirect_url']['#title'] = NULL;
$form['redirect_url']['#description'] = NULL;
// Add prefix and suffix to display Redirect URL field inline.
$form['redirect']['url']['#prefix'] = '
';
$form['redirect']['url']['#suffix'] = '
';
$form['redirect']['url']['#title'] = $form['redirect']['url']['#title'] . ': ' . drupal_render($form['redirect_url']);
return drupal_render($form);
}