You are here

function workflow_user in Workflow 6

Same name and namespace in other branches
  1. 6.2 workflow.module \workflow_user()

Implementation of hook_user().

File

./workflow.module, line 1251
Support workflows made up of arbitrary states.

Code

function workflow_user($op, &$edit, &$account, $category = NULL) {
  switch ($op) {
    case 'delete':
      db_query("UPDATE {workflow_node} SET uid = 0 WHERE uid = %d", $account->uid);
      db_query("UPDATE {workflow_node_history} SET uid = 0 WHERE uid = %d", $account->uid);
      break;
  }
}