Prechádzať zdrojové kódy

pa #674: utiliser hook_term_path pour les vues taxinomie modifiees

FGM 13 rokov pred
rodič
commit
b92a84e4df
2 zmenil súbory, kde vykonal 7 pridanie a 7 odobranie
  1. 1 1
      fgcf.features.content.inc
  2. 6 6
      fgcf.module

+ 1 - 1
fgcf.features.content.inc

@@ -146,7 +146,7 @@ o|Oui',
         'exclude' => 0,
       ),
       'full' => array(
-        'format' => 'fgcf_support_page_link',
+        'format' => 'link',
         'exclude' => 0,
       ),
       '4' => array(

+ 6 - 6
fgcf.module

@@ -9,7 +9,7 @@ include_once('fgcf.features.inc');
 
 /**
  * Implementation of hook_field_formatter_info().
- * 
+ *
  * @return array
  */
  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.'),
      ),
    );
-   
+
    return $ret;
 }
- 
+
 /**
  * Implementation of hook_init().
  */
@@ -120,12 +120,12 @@ function fgcf_theme($existing, $type, $theme, $path) {
 function fgcf_term_path($term) {
   $vocabulary = taxonomy_vocabulary_load($term->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;
       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;
 
     default: