Add a meta content="noindex,nofollow" tag on a node created programmatically Is it possible to add a meta content="noindex,nofollow" tag to the head on the page of a node created programmatically (and onl this node)? I have created the node like this: 

function MODULENAME_install() {
  $bodytext = 'Some Text';

  $node = new stdClass(); 
  $node-&gt;type = "page"; 
  $node-&gt;title = "New title";
  $node-&gt;language = LANGUAGE_NONE; 
  node_object_prepare($node); 
  $node-&gt;body[$node-&gt;language][0]['value'] = $bodytext;
  $node-&gt;body[$node-&gt;language][0]['summary'] = '';
  $node-&gt;body[$node-&gt;language][0]['format'] = 'full_html'; 
  $node-&gt;path = array('alias' =&gt; 'new-title');
  node_save($node);
}
You can use below code for adding no-follow and no-index meta for the node. Put this code in your themes template.php file.

function MYTHEME_html_head_alter(&amp;$head_elements) {
  if (arg(0) == 'node' &amp;&amp; arg(1) == 'YOUR NODE NID' &amp;&amp; !arg(2)) {
    $head_elements['MYMODULE_meta_robots'] = array(
      '#tag' =&gt; 'meta',
      '#type' =&gt; 'html_tag',
      '#attributes' =&gt; array(
        'name' =&gt; 'robots',
        'content' =&gt; 'noindex'
      )
    );
  }
}