You are here

function theme_webform_view in Webform 7.4

Same name and namespace in other branches
  1. 5.2 webform.module \theme_webform_view()
  2. 6.3 webform.module \theme_webform_view()
  3. 6.2 webform.module \theme_webform_view()
  4. 7.3 webform.module \theme_webform_view()

Output the Webform into the node content.

Parameters

array $variables: The variables array.

Return value

string The rendered Webform.

1 theme call to theme_webform_view()
webform_node_view in ./webform.module
Implements hook_node_view().

File

./webform.module, line 2165
This module provides a simple way to create forms and questionnaires.

Code

function theme_webform_view(array $variables) {

  // Only show the form if this user is allowed access.
  if ($variables['webform']['#enabled']) {
    return drupal_render($variables['webform']['#form']);
  }
}