Révision feca1e4a
Ajouté par Assos Assos il y a presque 7 ans
drupal7/sites/all/modules/webform/views/webform_handler_field_is_draft.inc | ||
---|---|---|
11 | 11 |
* @ingroup views_field_handlers |
12 | 12 |
*/ |
13 | 13 |
class webform_handler_field_is_draft extends views_handler_field { |
14 |
function render($values) { |
|
14 |
|
|
15 |
/** |
|
16 |
* |
|
17 |
*/ |
|
18 |
public function render($values) { |
|
15 | 19 |
$is_draft = $values->{$this->field_alias}; |
16 | 20 |
return isset($is_draft) |
17 | 21 |
? ($is_draft ? t('draft') : t('completed')) |
18 | 22 |
: t('no submission'); |
19 | 23 |
} |
24 |
|
|
20 | 25 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules