Is there any way by which secondary links/primary links can be printed in a block ? In block-my_module.tpl.php i have this piece of code
<?php if (isset($secondary_links)) { ?><?php print theme('links', $secondary_links, array('class' => 'links', 'id' => 'subnavlist')) ?><?php } ?>
Which i took from a sys theme , i can print this in a page.tpl.php file but not in a block file