I am unable to show the access denied message of the premium content module. How can I do this?
I have included this code within the teaser in node--content-type.tpl.php:

&lt;?php print $content['body'][0]['#markup']; ?&gt;


And I have included this code in template.php:

function  mimooc_premium_body($arguments) {
  $node = $arguments['node'];
  node_build_content($node, 'teaser');
  unset($node-&gt;content['links']);
  $level = premium_level_load($node-&gt;premium);
  if ($level-&gt;denied_message) {
    $denied_message = $level-&gt;denied_message;
    $denied_message_format = $level-&gt;denied_message_format;
  }
  else {
    $denied_message = variable_get('premium_message', t('Full text available to premium subscribers only.'));
    $denied_message_format = variable_get('premium_format');
  }
  // Only display the premium message, if we actual have any content.
  if (!empty($node-&gt;content)) {
    return '&lt;div class="premium-message"&gt;&lt;h3&gt;' . check_markup($denied_message, $denied_message_format) . '&lt;/h3&gt;&lt;p&gt;' . l('Click here to sign in', 'user') . '&lt;/p&gt;&lt;/div&gt;';
  }
}


Now, when I access the full view mode of the node, I get the teaser of that node with the access denied message.