You are here

function nopremium_get_message in Node Option Premium 7

Same name and namespace in other branches
  1. 6 nopremium.module \nopremium_get_message()

Get the raw nopremium message for the given node type.

2 calls to nopremium_get_message()
nopremium_settings_form in ./nopremium.admin.inc
@file Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr
theme_nopremium_message in ./nopremium.module
Theme nopremium message.

File

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

Code

function nopremium_get_message($type = '') {
  if ($type) {
    $message = variable_get('nopremium_message_' . $type, '');
    if ($message) {
      return $message;
    }
  }
  return variable_get('nopremium_message', 'The full content of this page is available to premium users only.');
}