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

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

This example Drupal source code file (webform-submission-information.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, clearfix, div, fieldset, php, webform-submission-info-text

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


 * @file
 * Customize the header information shown when editing or viewing submissions.
 * Available variables:
 * - $node: The node object for this webform.
 * - $submission: The contents of the webform submission.
 * - $account: The user that submitted the form.
 * - $mode: The mode of the submission being viewed. May be one of "display",
 *   "form", "print", or "pdf".
<fieldset class="webform-submission-info clearfix">
  <legend><?php print t('Submission information'); ?></legend>
  <?php print theme('user_picture', array('account' => $account)); ?>
  <div class="webform-submission-info-text">
    <div><?php print t('Form: !form', array('!form' => l($node->title, 'node/' . $node->nid))); ?></div>
    <div><?php print t('Submitted by !name', array('!name' => theme('username', array('account' => $account)))); ?></div>
    <div><?php print format_date($submission->submitted, 'large'); ?></div>
    <div><?php print $submission->remote_addr; ?></div>

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal webform-submission-information.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.