|
@@ -108,7 +108,8 @@ function fgcf_odt_replace_node_formation($segment, $node) {
|
|
'formation_support',
|
|
'formation_support',
|
|
'formation_sanction',
|
|
'formation_sanction',
|
|
'formation_public',
|
|
'formation_public',
|
|
- 'formation_thematique',
|
|
|
|
|
|
+ 'formation_thematique_1',
|
|
|
|
+ 'formation_thematique_2',
|
|
);
|
|
);
|
|
// Initialise replacements with 'unspecified' text.
|
|
// Initialise replacements with 'unspecified' text.
|
|
$replace = array_fill_keys($keys, '-');
|
|
$replace = array_fill_keys($keys, '-');
|
|
@@ -237,17 +238,13 @@ function fgcf_odt_replace_node_formation($segment, $node) {
|
|
$parents = taxonomy_get_parents($term->tid);
|
|
$parents = taxonomy_get_parents($term->tid);
|
|
if ($parents) {
|
|
if ($parents) {
|
|
$parent = current($parents);
|
|
$parent = current($parents);
|
|
- $values[] = strip_tags(filter_xss_admin($parent->description));
|
|
|
|
|
|
+ $replace['formation_thematique_1'] = strip_tags(filter_xss_admin($parent->description));
|
|
}
|
|
}
|
|
|
|
|
|
- $values[] = strip_tags(filter_xss_admin($term->description));
|
|
|
|
|
|
+ $replace['formation_thematique_2'] = strip_tags(filter_xss_admin($term->description));
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if ($values) {
|
|
|
|
- // @todo mise en forme ?
|
|
|
|
- $replace['formation_thematique'] = implode(' / ', $values);
|
|
|
|
- }
|
|
|
|
|
|
|
|
_fgcf_odt_replace_segment($segment, $replace);
|
|
_fgcf_odt_replace_segment($segment, $replace);
|
|
}
|
|
}
|