how to render links as menu tabs I have created a block that generates some links. I want to display these links as menu tabs in my website. This is the php code I have written inside block.

&lt;?php
  $current_url = current_path();
  $param = explode("/", $current_url);
  $nid = $param[1];

  $type = db_select("node", "n")
            -&gt;fields("n", array("type"))
            -&gt;condition("nid", $nid, "=")
            -&gt;execute()
            -&gt;fetchAssoc();

  switch($type['type']) {
    case "description":
      $current_desc_link = $current_url;
      $current_demo_link = db_select("field_data_field_desc_demolink", "fddd")
                          -&gt;fields("fddd", array("field_desc_demolink_url"))
                          -&gt;condition("entity_id", $nid, "=")
                          -&gt;execute()
                          -&gt;fetchAssoc();

      $howto_entityid = db_select("field_data_field_howto_demolink", "fdhd")
                          -&gt;fields("fdhd", array("entity_id"))
                          -&gt;condition("field_howto_demolink_url", $current_demo_link['field_desc_demolink_url'], "=")
                          -&gt;execute()
                          -&gt;fetchAssoc();

      $current_howto_link = "node/" . $howto_entityid;

      break;

    case "how_to":
      $current_howto_link = $current_url;
      $current_demo_link = db_select("field_data_field_howto_demolink", "fdhd")
                          -&gt;fields("fdhd", array("field_howto_demolink_url"))
                          -&gt;condition("entity_id", $nid, "=")
                          -&gt;execute()
                          -&gt;fetchAssoc();

      $desc_entityid = db_select("field_data_field_desc_demolink", "fddd")
                          -&gt;fields("fddd", array("entity_id"))
                          -&gt;condition("field_desc_demolink_url", $current_demo_link['field_howto_demolink_url'], "=")
                          -&gt;execute()
                          -&gt;fetchAssoc();

      $current_desc_link = "node/" . $desc_entityid;

      break;


    default:
      $desc_entityid = db_select("field_data_field_desc_demolink", "fddd")
                          -&gt;fields("fddd", array("entity_id"))
                          -&gt;condition("field_desc_demolink_url", $current_url, "=")
                          -&gt;execute()
                          -&gt;fetchAssoc();

      $howto_entityid = db_select("field_data_field_howto_demolink", "fdhd")
                          -&gt;fields("fdhd", array("entity_id"))
                          -&gt;condition("field_howto_demolink_url", $current_url, "=")
                          -&gt;execute()
                          -&gt;fetchAssoc();

      $current_demo_link = current_url;
      $current_desc_link = "node/" . $desc_entityid;
      $current_howto_link = "node/" . $howto_entityid;

      break;
}
?&gt;


I want to render $current_demo_link, $current_desc_link, $current_howto_link as menu tabs in drupal webiste. I have tried menu_tree_output but I have to create menu links in Db. Is there any other way to render the links as menu without converting this as menu links.
Maybe try something like this?

$output = '&lt;ul class="tabs primary"&gt;';
$output .= '&lt;li&gt;&lt;a href="' . url($current_demo_link) . '"&gt;demo link title&lt;/a&gt;';
$output .= '&lt;li&gt;&lt;a href="' . url($current_desc_link) . '"&gt;desc link title&lt;/a&gt;'
$output .= '&lt;li&gt;&lt;a href="' . url($current_howto_link) . '"&gt;hot to link title&lt;/a&gt;'
$output .= '&lt;/ul&gt;';