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