Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/content_types/node_context/node_updated.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
/** |
4 |
* @file |
|
4 | 5 |
* Plugins are described by creating a $plugin array which will be used |
5 | 6 |
* by the system that includes this file. |
6 | 7 |
*/ |
8 |
|
|
7 | 9 |
$plugin = array( |
8 | 10 |
'single' => TRUE, |
9 | 11 |
'title' => t('Node last updated date'), |
... | ... | |
28 | 30 |
$node = $context->data; |
29 | 31 |
|
30 | 32 |
// Build the content type block. |
31 |
$block = new stdClass(); |
|
33 |
$block = new stdClass();
|
|
32 | 34 |
$block->module = 'node_updated'; |
33 | 35 |
$block->title = t('Last updated date'); |
34 | 36 |
$block->content = format_date(!empty($node->changed) ? $node->changed : $node->created, $conf['format']); |
Formats disponibles : Unified diff
Weekly update of contrib modules