Closed (fixed)
Project:
Features
Version:
7.x-1.0-beta4
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2011 at 07:57 UTC
Updated:
29 Sep 2011 at 08:38 UTC
Hi,
I tried to declare a hook_menu fonction in my feature, but it does not seem to create my menu.
function myfeature_menu() {
$items = array();
$items['admin/config/system/myfeatureconfig'] = array(
'title' => t('Configuration of my new feature'),
'description' => t('Bla bla bla'),
'page callback' => 'drupal_get_form',
'page arguments' => array('myfeature_admin'),
'access arguments' => array('access administration pages'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
I believe this is due to the fact that menus are cached into the system. Is it an issue, or is it not in the concept of features to create custom menus in the .module?
Thanks in advance
Comments
Comment #1
lahode commentedI happened to find the following error in my report:
PDOException : dans _menu_router_save() (ligne 3703 dans /srv/www/9028_cepp/includes/menu.inc).
So it seem definitely an issue
Comment #2
lahode commentedMy mistake... working in french and my page was not set in UTF-8 :(
Spent 1 hour to figure that... booouuuu