If I use
theme('links', array('links' => menu_navigation_links('main-menu'),
'attributes' => array('class'=> array('links', 'main-menu')) ));
It will print the links in my Main Menu. I need to print the links that are created by my custom module, but I do not know what the system menu name is.
For instance:
//hook_menu
function custom_menu() {
//admin page
$items['admin/custom'] = array(
'title' => t('Custom Admin Page'),
'description' => t('Manage Custom Module'),
'page callback' => 'custom_admin_page',
'access arguments' => array('access toolbar'),
'type' => MENU_NORMAL_ITEM,
);
//add event
$items['admin/custom/add'] = array(
'title' => t('Add Custom'),
'decription' => t('Add custom'),
'page callback' => 'custom_add',
'access arguments' => array('add custom'),
'type' => MENU_NORMAL_ITEM,
'file' => 'custom_add.inc',
'file path' => drupal_get_path('module', 'custom') . '/includes',
);
The page 'admin/custom' automatically goes into my administration menu, and the page 'admin/custom/add' is seen under the admin/custom link when viewing all of the links in the administration menu, but I want to print that menu (admin/custom) on the 'admin/custom' page so that I can see the link 'admin/custom/add'.