To make a Drupal 7 / YAD7 menu placeholder that generates a page automatically populating it with the sub-menu items, make the following entry in a hook_menu function
function example_menu() {
return [
'example' => [
'title' => 'Example placeholder',
'description' => 'This will automatically populate with the sub-menu items',
'weight' => -2,
'page callback' => 'system_admin_menu_block_page',
'access arguments' => [ 'access administration pages' ],
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system') ] ];
}
2 / 2021