Revision 560c3060
Added by Julien Enselme about 9 years ago
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 |
} |
Also available in: Unified diff
Update ctools 1.7 -> 1.9