function template_preprocess_webform_form in Webform 6.2
Same name and namespace in other branches
- 6.3 webform.module \template_preprocess_webform_form()
- 7.4 webform.module \template_preprocess_webform_form()
- 7.3 webform.module \template_preprocess_webform_form()
Prepare for theming of the webform form.
File
- ./
webform.module, line 2010
Code
function template_preprocess_webform_form(&$vars) {
if (isset($vars['form']['details']['nid']['#value'])) {
$vars['nid'] = $vars['form']['details']['nid']['#value'];
}
elseif (isset($vars['form']['submission']['#value'])) {
$vars['nid'] = $vars['form']['submission']['#value']->nid;
}
}