function theme_webform_view in Webform 6.3
Same name and namespace in other branches
- 5.2 webform.module \theme_webform_view()
- 6.2 webform.module \theme_webform_view()
- 7.4 webform.module \theme_webform_view()
- 7.3 webform.module \theme_webform_view()
Output the Webform into the node content.
Parameters
$node: The webform node object.
$teaser: If this webform is being displayed as the teaser view of the node.
$page: If this webform node is being viewed as the main content of the page.
$form: The rendered form.
$enabled: If the form allowed to be completed by the current user.
1 theme call to theme_webform_view()
- webform_node_view in ./
webform.module - Implements hook_node_view().
File
- ./
webform.module, line 1448
Code
function theme_webform_view($node, $teaser, $page, $form, $enabled) {
// Only show the form if this user is allowed access.
if ($enabled) {
return $form;
}
}