Revision 95134a7b
Added by Andreas Kohlbecker almost 14 years ago
modules/cdm_dataportal/cdm_taxontree/cdm_taxontree.module | ||
---|---|---|
68 | 68 |
*/ |
69 | 69 |
function cdm_taxontree_block($op='list', $delta=0, $edit = array()) { |
70 | 70 |
if ($op == "list") { |
71 |
$block['cdm_tree']["info"] = t('CDM Taxon Tree');
|
|
72 |
$block['filters']["info"] = t('Active Filters');
|
|
73 |
$block[1]["info"] = t('Drupal Taxonomy Tree');
|
|
71 |
$block['cdm_tree']["info"] = t('CDM taxon tree');
|
|
72 |
$block['filters']["info"] = t('Active filters');
|
|
73 |
$block[1]["info"] = t('Drupal taxonomy tree');
|
|
74 | 74 |
return $block; |
75 | 75 |
} |
76 | 76 |
else if ($op == 'view') { |
77 | 77 |
switch($delta){ |
78 | 78 |
case 'cdm_tree': |
79 |
$block['subject'] = t('Taxon Tree');
|
|
79 |
$block['subject'] = t('Taxon tree');
|
|
80 | 80 |
$taxonUuid_inFocus = _cdm_get_taxonuuid(); |
81 | 81 |
$tree = cdm_taxontree_build_tree($taxonUuid_inFocus); |
82 | 82 |
$magicbox_enable = variable_get('cdm_taxontree_magicbox_enable', 0); |
... | ... | |
94 | 94 |
return $block; |
95 | 95 |
|
96 | 96 |
case 'filters': |
97 |
$block['subject'] = t('Active Filters');
|
|
97 |
$block['subject'] = t('Active filters');
|
|
98 | 98 |
$block['content'] = cdm_taxontree_view_filter('list'); |
99 | 99 |
return $block; |
100 | 100 |
|
101 | 101 |
case 1: |
102 |
$block['subject'] = t('Taxonomy Tree');
|
|
102 |
$block['subject'] = t('Taxonomy tree');
|
|
103 | 103 |
$term_inFocus = arg(0) == 'taxonomy' && arg(1) == 'term' ? arg(2) : 0; |
104 | 104 |
$tree = cdm_taxontree_build_tree($term_inFocus, true, variable_get('cdm_taxontree_block_1_vid', 0)); |
105 | 105 |
$block['content'] = theme('cdm_taxontree_block', $tree, $delta, FALSE); |
Also available in: Unified diff
fixed related to #7151