| 1 |
<?php |
<?php |
| 2 |
// $Id: revisioning_triggers_actions.inc,v 1.6 2009/05/12 07:08:07 rdeboer Exp $ |
// $Id: revisioning_triggers_actions.inc,v 1.7 2009/05/18 07:43:39 rdeboer Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 88 |
*/ |
*/ |
| 89 |
function revisioning_publish_latest_revision_action(&$node, $context = array()) { |
function revisioning_publish_latest_revision_action(&$node, $context = array()) { |
| 90 |
$type = node_get_types('name', $node->type); |
$type = node_get_types('name', $node->type); |
| 91 |
watchdog('revisioning', 'Executing publish_latest_revision action for @type %title', array('@type' => $type, '%title' => $node->title), |
watchdog('revisioning', |
| 92 |
WATCHDOG_NOTICE, l(t('view'), "node/$node->nid")); |
'Executing publish_latest_revision action for @type %title', array('@type' => $type, '%title' => $node->title), |
| 93 |
|
WATCHDOG_NOTICE, l(t('view'), "node/$node->nid")); |
| 94 |
revisioning_publish_latest_revision($node); |
revisioning_publish_latest_revision($node); |
| 95 |
} |
} |