Update to drupal-org-drupal 8.0.0-rc2. For more information, see https://www.drupal.org/node/2598668
This commit is contained in:
parent
f32e58e4b1
commit
8e18df8c36
3062 changed files with 15044 additions and 172506 deletions
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Hooks provided by the User module.
|
||||
|
@ -44,7 +42,7 @@ function hook_user_cancel($edit, $account, $method) {
|
|||
// Unpublish nodes (current revisions).
|
||||
module_load_include('inc', 'node', 'node.admin');
|
||||
$nodes = \Drupal::entityQuery('node')
|
||||
->condition('uid', $user->id())
|
||||
->condition('uid', $account->id())
|
||||
->execute();
|
||||
node_mass_update($nodes, array('status' => 0), NULL, TRUE);
|
||||
break;
|
||||
|
@ -53,7 +51,7 @@ function hook_user_cancel($edit, $account, $method) {
|
|||
// Anonymize nodes (current revisions).
|
||||
module_load_include('inc', 'node', 'node.admin');
|
||||
$nodes = \Drupal::entityQuery('node')
|
||||
->condition('uid', $user->id())
|
||||
->condition('uid', $account->id())
|
||||
->execute();
|
||||
node_mass_update($nodes, array('uid' => 0), NULL, TRUE);
|
||||
// Anonymize old revisions.
|
||||
|
|
Reference in a new issue