function theme_webform_advanced_redirection_form in Webform 7.4
Same name and namespace in other branches
- 6.3 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 567 - Menu callbacks and functions for configuring and editing webforms.
Code
function theme_webform_advanced_redirection_form($variables) {
$form = $variables['form'];
// Add special class for setting the active radio button.
$form['redirect_url']['#attributes']['class'][] = 'webform-set-active';
// Remove wrappers around the inline Redirect URL field.
$form['redirect_url']['#theme_wrappers'] = array();
$form['redirect']['confirmation']['#theme_wrappers'] = array(
'webform_inline_radio',
);
$form['redirect']['url']['#theme_wrappers'] = array(
'webform_inline_radio',
);
$form['redirect']['none']['#theme_wrappers'] = array(
'webform_inline_radio',
);
$form['redirect']['url']['#title'] = t('Custom URL: !redirect_url', array(
'!redirect_url' => drupal_render($form['redirect_url']),
));
return drupal_render_children($form);
}