You are here

function node_make_premium_action in Node Option Premium 7

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

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

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

File

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

Code

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