I am developing a new module but I don't seem to be able to get the menu system to create the parents properly. The module is called embed.
The structure that I'd like is
Administer > Site configuration > Embed > Handlers
Under handlers are a number of further options, defining mime types, so it could be audio > mp3, video > flv
The menu is built in hook_menu(), but all the menu items get a parent of Embed, rather than cascading down. So when I view admin/settings/embed I see handlers, and all the mime elements. What I was expecting was to get handlers first, as there may be other settings to come, with the mime types hidden below.
The code I'm using is
<?php
function embed_menu() {
// Menu items that are basically just menu blocks.
$items['admin/settings/embed'] = array(
'title' => 'Embed',
'description' => 'Configure various aspects of the embed module.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('administer embed'),
);
// Menu items that are basically just menu blocks.
$items['admin/settings/embed/handlers'] = array(
'title' => 'Handlers',
'description' => 'Configure embedding handlers.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('administer embed'),
);
// Get the available embedding themes from a fresh query