webform_handler_field_is_draft.inc in Webform 6.3
Same filename and directory in other branches
Views handler to display the draft status of a submission.
File
views/webform_handler_field_is_draft.incView source
<?php
/**
* @file
* Views handler to display the draft status of a submission.
*/
/**
* Field handler to show if submission is draft or not.
*
* @ingroup views_field_handlers
*/
class webform_handler_field_is_draft extends views_handler_field {
function render($values) {
$is_draft = $values->{$this->field_alias};
return $is_draft ? t('draft') : t('completed');
}
}
Classes
Name | Description |
---|---|
webform_handler_field_is_draft | Field handler to show if submission is draft or not. |