Projet

Général

Profil

Révision c304a780

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/plugins/content_types/comment/comment_created.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('Comment created date'),
......
28 30
  $comment = $context->data;
29 31

  
30 32
  // Build the content type block.
31
  $block = new stdClass();
33
  $block          = new stdClass();
32 34
  $block->module  = 'comment_created';
33 35
  $block->title   = t('Created date');
34 36
  $block->content = format_date($comment->created, $conf['format']);

Formats disponibles : Unified diff