0

When you click 'Structure' in Drupal admin the page displayed is a print of the child items of the 'Structure' menu item.

I imagine this behaviour is relatively simple to achieve? I have a custom menu item using hook_menu but what do I need to do in page_callback in order to achieve the same results?

1
$items['admin/sponsorship'] = array(

    'title' => 'Sponsorship',
    'page callback' => 'system_admin_menu_block_page',
    'file path' => drupal_get_path('module', 'system'),
    'file' => 'system.admin.inc',
);

Seems to have done the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.