webform-submission-navigation.tpl.php in Webform 7.4
Same filename and directory in other branches
Customize the navigation shown when editing or viewing submissions.
Available variables:
- $node: The node object for this webform.
- $mode: Either "form" or "display". May be other modes provided by other modules, such as "print" or "pdf".
- $submission: The contents of the webform submission.
- $previous: The previous submission ID.
- $next: The next submission ID.
- $previous_url: The URL of the previous submission.
- $next_url: The URL of the next submission.
1 theme call to webform-submission-navigation.tpl.php
- webform_submission_page in includes/
webform.submissions.inc - Menu callback; Present a Webform submission page for display or editing.
File
templates/webform-submission-navigation.tpl.phpView source
<?php
/**
* @file
* Customize the navigation shown when editing or viewing submissions.
*
* Available variables:
* - $node: The node object for this webform.
* - $mode: Either "form" or "display". May be other modes provided by other
* modules, such as "print" or "pdf".
* - $submission: The contents of the webform submission.
* - $previous: The previous submission ID.
* - $next: The next submission ID.
* - $previous_url: The URL of the previous submission.
* - $next_url: The URL of the next submission.
*/
?>
<div class="webform-submission-navigation">
<?php
if ($previous) {
?>
<?php
print l(t('Previous submission'), $previous_url, array(
'attributes' => array(
'class' => array(
'webform-submission-previous',
),
),
'query' => $mode == 'form' ? array(
'destination' => $previous_url,
) : NULL,
));
?>
<?php
}
else {
?>
<span class="webform-submission-previous"><?php
print t('Previous submission');
?></span>
<?php
}
?>
<?php
if ($next) {
?>
<?php
print l(t('Next submission'), $next_url, array(
'attributes' => array(
'class' => array(
'webform-submission-next',
),
),
'query' => $mode == 'form' ? array(
'destination' => $next_url,
) : NULL,
));
?>
<?php
}
else {
?>
<span class="webform-submission-next"><?php
print t('Next submission');
?></span>
<?php
}
?>
</div>