You are here

function workflow_comment_update in Workflow 7

Implements hook_comment_update().

1 call to workflow_comment_update()
workflow_comment_insert in ./workflow.node.inc
Implements hook_comment_insert().

File

./workflow.node.inc, line 157
Node specific functions, remnants of nodeapi.

Code

function workflow_comment_update($comment) {
  if (isset($comment->workflow)) {
    $node = node_load($comment->nid);
    $sid = $comment->workflow;
    $node->workflow_comment = $comment->workflow_comment;
    if (isset($comment->workflow_scheduled)) {
      $node->workflow_scheduled = $comment->workflow_scheduled;
    }
    if (isset($comment->workflow_scheduled_date)) {
      $node->workflow_scheduled_date = $comment->workflow_scheduled_date;
    }
    if (isset($comment->workflow_scheduled_hour)) {
      $node->workflow_scheduled_hour = $comment->workflow_scheduled_hour;
    }
    workflow_transition($node, $sid);
  }
}