Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/content_types/node_context/node_comments.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 = clone $context->data; |
27 | 31 |
$block = new stdClass(); |
28 | 32 |
$block->module = 'comments'; |
29 |
$block->delta = $node->nid;
|
|
33 |
$block->delta = $node->nid; |
|
30 | 34 |
$block->title = t('Comments'); |
31 | 35 |
|
32 | 36 |
if ($node->comment) { |
... | ... | |
48 | 52 |
foreach (_comment_per_page() as $i) { |
49 | 53 |
$options[$i] = t('!a comments per page', array('!a' => $i)); |
50 | 54 |
} |
51 |
$form['comments_per_page'] = array('#type' => 'select', |
|
55 |
$form['comments_per_page'] = array( |
|
56 |
'#type' => 'select', |
|
52 | 57 |
'#title' => t('Pager'), |
53 | 58 |
'#default_value' => $conf['comments_per_page'], |
54 | 59 |
'#options' => $options, |
Formats disponibles : Unified diff
Weekly update of contrib modules