function theme_webform_advanced_redirection_form in Webform 6.3
Same name and namespace in other branches
- 7.4 includes/webform.pages.inc \theme_webform_advanced_redirection_form()
- 7.3 includes/webform.pages.inc \theme_webform_advanced_redirection_form()
Theme the redirection setting on the webform node form.
1 theme call to theme_webform_advanced_redirection_form()
- webform_configure_form in includes/
webform.pages.inc - Main configuration form for editing a webform node.
File
- includes/
webform.pages.inc, line 389 - Menu callbacks and functions for configuring and editing webforms.
Code
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'] = '<div class="webform-container-inline">';
$form['redirect']['url']['#suffix'] = '</div>';
$form['redirect']['url']['#title'] = $form['redirect']['url']['#title'] . ': ' . drupal_render($form['redirect_url']);
return drupal_render($form);
}