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_reply_form.inc
14 14
    'icon' => 'icon_comment.png',
15 15
    'description' => t('A form to add a new comment reply.'),
16 16
    'required context' => array(
17
        new ctools_context_required(t('Node'), 'node'),
18
        new ctools_context_optional(t('Comment'), 'comment'),
19
        ),
17
      new ctools_context_required(t('Node'), 'node'),
18
      new ctools_context_optional(t('Comment'), 'comment'),
19
    ),
20 20
    'category' => t('Comment'),
21 21
    'render callback'  => 'ctools_comment_reply_form_content_type_render',
22
    'defaults' => array('anon_links' => false),
22
    'defaults' => array('anon_links' => FALSE),
23 23
  );
24 24
}
25 25

  
......
28 28
  $comment = ($context[1]->identifier == t('No context')) ? NULL : clone $context[1]->data;
29 29
  $block = new stdClass();
30 30
  $block->module = 'comments';
31
  if ($comment) $block->delta  = $comment->cid;
31
  if ($comment) {
32
    $block->delta = $comment->cid;
33
  }
32 34
  $block->title = t('Add comment');
33 35
  $node = $context[0]->data;
34 36

  

Formats disponibles : Unified diff