|
@@ -16,7 +16,7 @@ function fgcf_menu() {
|
|
|
$items = array();
|
|
|
|
|
|
$items['fgcf'] = array(
|
|
|
- 'title' => 'Catalogue Formations',
|
|
|
+ 'title' => 'Catalogue formations',
|
|
|
'page callback' => 'fgcf_page_home',
|
|
|
'access arguments' => $read_access,
|
|
|
'menu_name' => 'primary-links',
|
|
@@ -39,12 +39,11 @@ function fgcf_menu() {
|
|
|
'page callback' => 'fgcf_page_thematique',
|
|
|
'access arguments' => $read_access,
|
|
|
);
|
|
|
- // Debug page - no access on production.
|
|
|
-// $items['fgcf/odt'] = array(
|
|
|
-// 'title' => 'ODT Test',
|
|
|
-// 'page callback' => 'fgcf_page_odt',
|
|
|
-// 'access arguments' => $read_access,
|
|
|
-// );
|
|
|
+ $items['fgcf/odt'] = array(
|
|
|
+ 'title' => 'ODT Test',
|
|
|
+ 'page callback' => 'fgcf_page_odt',
|
|
|
+ 'access arguments' => array('create fgcf_fiche content'),
|
|
|
+ );
|
|
|
return $items;
|
|
|
}
|
|
|
|
|
@@ -237,8 +236,7 @@ function fgcf_page_organisme() {
|
|
|
|
|
|
$filter_form = drupal_get_form('fgcf_filter_form');
|
|
|
|
|
|
- $ret = $filter_form;
|
|
|
- $ret .= views_embed_view('fgcf_organismes_de_formation');
|
|
|
+ $ret = views_embed_view('fgcf_organismes_de_formation');
|
|
|
|
|
|
return $ret;
|
|
|
}
|