[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/webform/templates/ -> webform-submission-navigation.tpl.php (source)

   1  <?php
   2  
   3  /**
   4   * @file
   5   * Customize the navigation shown when editing or viewing submissions.
   6   *
   7   * Available variables:
   8   * - $node: The node object for this webform.
   9   * - $mode: Either "form" or "display". May be other modes provided by other
  10   *          modules, such as "print" or "pdf".
  11   * - $submission: The contents of the webform submission.
  12   * - $previous: The previous submission ID.
  13   * - $next: The next submission ID.
  14   * - $previous_url: The URL of the previous submission.
  15   * - $next_url: The URL of the next submission.
  16   */
  17  ?>
  18  <div class="webform-submission-navigation">
  19    <?php if ($previous): ?>
  20      <?php print l(t('Previous submission'), $previous_url, array('attributes' => array('class' => 'webform-submission-previous'), 'query' => ($mode == 'form' ? 'destination=' . $previous_url : NULL))); ?>
  21    <?php else: ?>
  22      <span class="webform-submission-previous"><?php print t('Previous submission'); ?></span>
  23    <?php endif; ?>
  24  
  25    <?php if ($next): ?>
  26      <?php print l(t('Next submission'), $next_url, array('attributes' => array('class' => 'webform-submission-next'), 'query' => ($mode == 'form' ? 'destination=' . $next_url : NULL))); ?>
  27    <?php else: ?>
  28      <span class="webform-submission-next"><?php print t('Next submission'); ?></span>
  29    <?php endif; ?>
  30  </div>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7