You are here

function theme_nopremium_message in Node Option Premium 6

Same name and namespace in other branches
  1. 7 nopremium.module \theme_nopremium_message()

Theme nopremium message.

2 theme calls to theme_nopremium_message()
nopremium_alter_node in ./nopremium.module
Alter a node replacing full body by nopremium body.
nopremium_nodeapi in ./nopremium.module
Implementation of hook_nodeapi().

File

./nopremium.module, line 249
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function theme_nopremium_message($node, $field = FALSE) {
  $output = check_markup(t(nopremium_get_message($node->type)));
  if ($field) {
    $output = '<div class="nopremium-message">' . $output . '</div>';
  }
  return $output;
}