Revision 76bdcd04
Added by Assos Assos almost 6 years ago
drupal7/sites/all/modules/webform/views/webform_handler_field_node_link_results.inc | ||
---|---|---|
8 | 8 |
class webform_handler_field_node_link_results extends views_handler_field_node_link { |
9 | 9 |
|
10 | 10 |
/** |
11 |
* |
|
11 |
* {@inheritdoc}
|
|
12 | 12 |
*/ |
13 | 13 |
public function option_definition() { |
14 | 14 |
$options = parent::option_definition(); |
... | ... | |
17 | 17 |
} |
18 | 18 |
|
19 | 19 |
/** |
20 |
* |
|
20 |
* {@inheritdoc}
|
|
21 | 21 |
*/ |
22 | 22 |
public function options_form(&$form, &$form_state) { |
23 | 23 |
parent::options_form($form, $form_state); |
... | ... | |
33 | 33 |
* Renders the link. |
34 | 34 |
*/ |
35 | 35 |
public function render_link($node, $values) { |
36 |
// Ensure node is webform-enabled and user has access node's webform results. |
|
36 |
// Ensure node is webform-enabled and the user has access node's webform |
|
37 |
// results. |
|
37 | 38 |
if (!in_array($node->type, webform_node_types()) || !webform_results_access($node)) { |
38 | 39 |
return; |
39 | 40 |
} |
Also available in: Unified diff
Weekly update of contrib modules