How to correctly add meta tags to custom menu items? I want to be able to use the meta tag module for everything my site, but currently I have no idea how to add meta tags to custom pages. For example, I have this page:

function mymodule_menu() 
{ 
    $items = array();
    $items['home'] = array(
      'title' =&gt; 'Home',
      'page callback' =&gt; 'mymodule_home_page',
      'access callback' =&gt; TRUE,
    );
    return $items;
}

function mymodule()
{
    $o = '';
    $o .= 'hello world';
    return $o;
}


Such a page doesn't get meta tags as it is a custom page. What is the best way to get meta tags on the page in this case? Or what is wrong with my strategy?
You can do this manually by using drupal_add_html_head(); in your menu's callback function

&lt;?php

function mymodule_home_page() {

  $element = array(
    '#tag' =&gt; 'meta', 
    '#attributes' =&gt; array( 
      'name' =&gt; 'custom meta info', 
      'content' =&gt; 'test content',
      'attributes' =&gt; 'D7',
    ),
  );
  drupal_add_html_head($element, 'Test');

  return 'hello';
} 
?&gt;


or some modules will allow you to add custom paths.