You are here

function theme_webform_view in Webform 5.2

Same name and namespace in other branches
  1. 6.3 webform.module \theme_webform_view()
  2. 6.2 webform.module \theme_webform_view()
  3. 7.4 webform.module \theme_webform_view()
  4. 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_view in ./webform.module
Implementation of hook_view().

File

./webform.module, line 994

Code

function theme_webform_view($node, $teaser, $page, $form, $enabled) {

  // Only show the form if this user is allowed access.
  if ($enabled) {
    return $form;
  }
}