function node_make_non_premium_action in Node Option Premium 6
Same name and namespace in other branches
- 7 nopremium.module \node_make_non_premium_action()
Implementation of a Drupal action. Sets the premium property of a node to 0.
File
- ./
nopremium.module, line 87 - 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 = 0;
watchdog('action', 'Set @type %title to non-premium.', array(
'@type' => node_get_types('name', $node),
'%title' => $node->title,
));
}