diff --git a/drupal/mon_agglo_comptecitoyen/mon_agglo_comptecitoyen.module b/drupal/mon_agglo_comptecitoyen/mon_agglo_comptecitoyen.module index 2027688..391c9af 100644 --- a/drupal/mon_agglo_comptecitoyen/mon_agglo_comptecitoyen.module +++ b/drupal/mon_agglo_comptecitoyen/mon_agglo_comptecitoyen.module @@ -11,6 +11,19 @@ function mon_agglo_comptecitoyen_theme($existing, $type, $theme, $path) { return $themes; } +function mon_agglo_comptecitoyen_menu() { + $items['user/%user_uid_optional'] = array( + 'title' => 'Newsletter', + 'title callback' => 'user_page_title', + 'title arguments' => array(1), + #'page callback' => 'mymodule_callback', + #'page arguments' => array(1), + 'access callback' => 'user_view_access', + 'access arguments' => array(1), + 'parent' => '', + ); +} + function _edit_user_callback() { unset($_REQUEST['destination']); return drupal_goto('http://idp-montpellier.entrouvert.org/fr/mon-compte'); @@ -29,8 +42,6 @@ function mon_agglo_comptecitoyen_menu_alter(&$items) { $items['user/%user_uid_optional']['page callback'] = $items['user/%user/newsletter']['page callback']; $items['user/%user_uid_optional']['page arguments'] = $items['user/%user/newsletter']['page arguments']; - $items['user/%user_uid_optional']['access callback'] = $items['user/%user/newsletter']['access callback']; - $items['user/%user_uid_optional']['access arguments'] = $items['user/%user/newsletter']['access arguments']; $items['user/%user/newsletter']['type'] = MENU_DEFAULT_LOCAL_TASK; $items['user/%user/newsletter']['weight'] = -10;