You are here

function workflow_user_cancel in Workflow 8

Implements hook_user_cancel().

Update tables for deleted account, move account to user 0 (anon.) ALERT: This may cause previously non-Anonymous posts to suddenly be accessible to Anonymous.

Parameters

$edit:

\Drupal\Core\Session\AccountInterface $account: An account object.

string $method:

See also

hook_user_cancel()

File

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

Code

function workflow_user_cancel($edit, AccountInterface $account, $method) {
  WorkflowManager::cancelUser($edit, $account, $method);
}