You are here

function node_make_non_premium_action in Node Option Premium 7

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

Implementation of a Drupal action. Sets the premium property of a node to 0.

1 string reference to 'node_make_non_premium_action'
nopremium_rules_action_info in ./nopremium.rules.inc
Implementation of hook_rules_action_info().

File

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

Code

function node_make_non_premium_action($node, $context = array()) {
  $node->premium = NODE_NOT_PREMIUM;
  watchdog('action', 'Set @type %title to non-premium.', array(
    '@type' => node_type_get_name($node),
    '%title' => $node->title,
  ));
}