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

lahode’s picture

I 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

lahode’s picture

Status: Active » Closed (fixed)

My mistake... working in french and my page was not set in UTF-8 :(

Spent 1 hour to figure that... booouuuu