home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (webform-submission-page.tpl.php)

This example Drupal source code file (webform-submission-page.tpl.php) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

class, clear-block, css_theme, div, endif, false, php, preprocess, submission_actions, submission_navigation, webform, webform-submission

The webform-submission-page.tpl.php Drupal example source code


 * @file
 * Customize the navigation shown when editing or viewing submissions.
 * Available variables:
 * - $node: The node object for this webform.
 * - $submission: The Webform submission array.
 * - $submission_content: The contents of the webform submission.
 * - $submission_navigation: The previous submission ID.
 * - $submission_information: The next submission ID.

drupal_add_css(drupal_get_path('module', 'webform') . '/css/webform-admin.css', array('group' => CSS_THEME, 'preprocess' => FALSE));

<?php if ($submission_actions || $submission_navigation): ?>
  <div class="clear-block">
    <?php print $submission_actions; ?>
    <?php print $submission_navigation; ?>
<?php endif; ?>

<?php print $submission_information; ?>

<div class="webform-submission">
  <?php print render($submission_content); ?>

<?php print $submission_navigation; ?>

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal webform-submission-page.tpl.php source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.