Projet

Général

Profil

Révision 560c3060

Ajouté par Julien Enselme il y a plus de 8 ans

Update ctools 1.7 -> 1.9

Voir les différences:

drupal7/sites/all/modules/ctools/plugins/content_types/term_context/term_description.inc
18 18
  $block = new stdClass();
19 19
  $block->module = 'node_type';
20 20

  
21
  $block->title = $term->name;
22
  if ($term) {
21
  if (!empty($term)) {
22
    $block->title = $term->name;
23 23
    $block->content = check_markup($term->description, $term->format, '', TRUE);
24 24
    $block->delta = $term->tid;
25 25

  
......
33 33
    }
34 34
  }
35 35
  else {
36
    $block->title = '';
36 37
    $block->content = t('Term description goes here.');
37 38
    $block->delta = 'unknown';
38 39
  }

Formats disponibles : Unified diff