|
@@ -9,7 +9,7 @@ include_once('fgcf.features.inc');
|
|
|
|
|
|
/**
|
|
/**
|
|
* Implementation of hook_field_formatter_info().
|
|
* Implementation of hook_field_formatter_info().
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @return array
|
|
* @return array
|
|
*/
|
|
*/
|
|
function fgcf_field_formatter_info() {
|
|
function fgcf_field_formatter_info() {
|
|
@@ -20,10 +20,10 @@ include_once('fgcf.features.inc');
|
|
'description' => t('Link to a FGCF Support page instead of a default taxonomy page.'),
|
|
'description' => t('Link to a FGCF Support page instead of a default taxonomy page.'),
|
|
),
|
|
),
|
|
);
|
|
);
|
|
-
|
|
|
|
|
|
+
|
|
return $ret;
|
|
return $ret;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Implementation of hook_init().
|
|
* Implementation of hook_init().
|
|
*/
|
|
*/
|
|
@@ -120,12 +120,12 @@ function fgcf_theme($existing, $type, $theme, $path) {
|
|
function fgcf_term_path($term) {
|
|
function fgcf_term_path($term) {
|
|
$vocabulary = taxonomy_vocabulary_load($term->vid);
|
|
$vocabulary = taxonomy_vocabulary_load($term->vid);
|
|
switch ($vocabulary->vid) {
|
|
switch ($vocabulary->vid) {
|
|
- case _fgcf_get_vocabulary_by_name('FGCF Théme'):
|
|
|
|
|
|
+ case _fgcf_get_vocabulary_by_name('FGCF Thème'):
|
|
return 'fgcf/theme/'. $term->tid;
|
|
return 'fgcf/theme/'. $term->tid;
|
|
break;
|
|
break;
|
|
|
|
|
|
- case _fgcf_get_vocabulary_by_name('FGCF Format de cours'):
|
|
|
|
- return 'fgcf/format/'. $term->tid;
|
|
|
|
|
|
+ case _fgcf_get_vocabulary_by_name('FGCF Supports de cours'):
|
|
|
|
+ return 'fgcf/support/'. $term->tid;
|
|
break;
|
|
break;
|
|
|
|
|
|
default:
|
|
default:
|