|
@@ -54,9 +54,9 @@ function fgcf_menu() {
|
|
'page callback' => 'fgcf_page_organisme',
|
|
'page callback' => 'fgcf_page_organisme',
|
|
'access arguments' => $read_access,
|
|
'access arguments' => $read_access,
|
|
);
|
|
);
|
|
- $items['fgcf/thematique'] = array(
|
|
|
|
|
|
+ $items['fgcf/theme'] = array(
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
- 'title' => 'Formations par thématique',
|
|
|
|
|
|
+ 'title' => 'Formations par thème',
|
|
'page callback' => 'fgcf_page_thematique',
|
|
'page callback' => 'fgcf_page_thematique',
|
|
'access arguments' => $read_access,
|
|
'access arguments' => $read_access,
|
|
);
|
|
);
|
|
@@ -99,8 +99,8 @@ 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ématique'):
|
|
|
|
- return 'fgcf/thematique/'. $term->tid;
|
|
|
|
|
|
+ case _fgcf_get_vocabulary_by_name('FGCF Théme'):
|
|
|
|
+ return 'fgcf/theme/'. $term->tid;
|
|
break;
|
|
break;
|
|
|
|
|
|
case _fgcf_get_vocabulary_by_name('FGCF Format de cours'):
|
|
case _fgcf_get_vocabulary_by_name('FGCF Format de cours'):
|
|
@@ -181,9 +181,9 @@ function fgcf_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
|
|
|
|
|
|
$bc = drupal_get_breadcrumb();
|
|
$bc = drupal_get_breadcrumb();
|
|
$bc[] = l(t('Catalogue formations'), 'fgcf');
|
|
$bc[] = l(t('Catalogue formations'), 'fgcf');
|
|
- $bc[] = l(t('Thématiques'), 'fgcf/thematique');
|
|
|
|
- $bc[] = l($cats[0]->description, 'fgcf/thematique/'. $cats[0]->tid);
|
|
|
|
- $bc[] = l($cats[1]->description, 'fgcf/thematique/'. $cats[1]->tid);
|
|
|
|
|
|
+ $bc[] = l(t('Thèmes'), 'fgcf/theme');
|
|
|
|
+ $bc[] = l($cats[0]->description, 'fgcf/theme/'. $cats[0]->tid);
|
|
|
|
+ $bc[] = l($cats[1]->description, 'fgcf/theme/'. $cats[1]->tid);
|
|
drupal_set_breadcrumb($bc);
|
|
drupal_set_breadcrumb($bc);
|
|
|
|
|
|
unset($cats, $parents, $tid, $term);
|
|
unset($cats, $parents, $tid, $term);
|
|
@@ -265,10 +265,10 @@ function fgcf_page_thematique($thematique = 0) {
|
|
|
|
|
|
// The views itself doesn't mention vocab ids, which might be different in dev
|
|
// The views itself doesn't mention vocab ids, which might be different in dev
|
|
// and in production.
|
|
// and in production.
|
|
- // We limit to terms in the 'Thématique' vocab outside the view.
|
|
|
|
- $vid = _fgcf_get_vocabulary_by_name('FGCF Thématique');
|
|
|
|
|
|
+ // We limit to terms in the 'Thème' vocab outside the view.
|
|
|
|
+ $vid = _fgcf_get_vocabulary_by_name('FGCF Thème');
|
|
if (empty($thematique)) {
|
|
if (empty($thematique)) {
|
|
- // Afficher liste des thématiques de 1er niveau.
|
|
|
|
|
|
+ // Afficher liste des thèmes de 1er niveau.
|
|
$ret .= views_embed_view('fgcf_thematiques_premier_niveau', 'default', $vid);
|
|
$ret .= views_embed_view('fgcf_thematiques_premier_niveau', 'default', $vid);
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
@@ -280,21 +280,21 @@ function fgcf_page_thematique($thematique = 0) {
|
|
$description = '';
|
|
$description = '';
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- $bc[] = l(t('Thématiques'), 'fgcf/thematique');
|
|
|
|
|
|
+ $bc[] = l(t('Thèmes'), 'fgcf/theme');
|
|
$parents = taxonomy_get_parents($thematique);
|
|
$parents = taxonomy_get_parents($thematique);
|
|
$description = $term->description;
|
|
$description = $term->description;
|
|
}
|
|
}
|
|
|
|
|
|
if (empty($parents)) {
|
|
if (empty($parents)) {
|
|
// Top category: display list of sub-categories.
|
|
// Top category: display list of sub-categories.
|
|
- drupal_set_title(t('Thématique : @term', array('@term' => $description)));
|
|
|
|
|
|
+ drupal_set_title(t('Thème : @term', array('@term' => $description)));
|
|
$ret .= views_embed_view('fgcf_thematique_deuxieme_niveau', 'default', $thematique);
|
|
$ret .= views_embed_view('fgcf_thematique_deuxieme_niveau', 'default', $thematique);
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
// Sub-category: display list of nodes.
|
|
// Sub-category: display list of nodes.
|
|
$parent = current($parents);
|
|
$parent = current($parents);
|
|
- $bc[] = l($parent->description, 'fgcf/thematique/'. $parent->tid);
|
|
|
|
- drupal_set_title(t('Thématique : @term', array('@term' => $description)));
|
|
|
|
|
|
+ $bc[] = l($parent->description, 'fgcf/theme/'. $parent->tid);
|
|
|
|
+ drupal_set_title(t('Thème : @term', array('@term' => $description)));
|
|
|
|
|
|
$values = _fgcf_filter_form_translate_values();
|
|
$values = _fgcf_filter_form_translate_values();
|
|
$ret .= views_embed_view('fgcf_formations_par_thematique', 'default', $thematique, $values['dif'], $values['modalites']);
|
|
$ret .= views_embed_view('fgcf_formations_par_thematique', 'default', $thematique, $values['dif'], $values['modalites']);
|