Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/content_types/node_context/node_comment_wrapper.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
/** |
|
4 |
* @file |
|
5 |
*/ |
|
6 |
|
|
3 | 7 |
if (module_exists('comment')) { |
4 | 8 |
/** |
5 | 9 |
* Plugins are described by creating a $plugin array which will be used |
... | ... | |
26 | 30 |
$node = isset($context->data) ? clone $context->data : NULL; |
27 | 31 |
$block = new stdClass(); |
28 | 32 |
$block->module = 'comments'; |
29 |
$block->delta = $node->nid;
|
|
33 |
$block->delta = $node->nid; |
|
30 | 34 |
|
31 | 35 |
$renderable = array( |
32 | 36 |
'#theme' => 'comment_wrapper__node_' . $node->type, |
... | ... | |
65 | 69 |
); |
66 | 70 |
$renderable['comment_form'] = drupal_build_form('comment_node_' . $node->type . '_form', $form_state); |
67 | 71 |
} |
68 |
else if (!empty($conf['anon_links'])) {
|
|
72 |
elseif (!empty($conf['anon_links'])) { |
|
69 | 73 |
$renderable['comment_form'] = theme('comment_post_forbidden', array('node' => $node)); |
70 | 74 |
} |
71 | 75 |
} |
... | ... | |
90 | 94 |
foreach (_comment_per_page() as $i) { |
91 | 95 |
$options[$i] = t('!a comments per page', array('!a' => $i)); |
92 | 96 |
} |
93 |
$form['comments_per_page'] = array('#type' => 'select', |
|
97 |
$form['comments_per_page'] = array( |
|
98 |
'#type' => 'select', |
|
94 | 99 |
'#title' => t('Pager'), |
95 | 100 |
'#default_value' => $conf['comments_per_page'], |
96 | 101 |
'#options' => $options, |
Formats disponibles : Unified diff
Weekly update of contrib modules