diff options
-rw-r--r-- | node_truncate.module | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/node_truncate.module b/node_truncate.module index ce0f294..9583ccf 100644 --- a/node_truncate.module +++ b/node_truncate.module @@ -100,7 +100,6 @@ function node_truncate($type, &$context) { ->addExpression('COUNT(DISTINCT(nid))'); $context['sandbox']['progress'] = 0; - $context['sandbox']['current_node'] = 0; $context['sandbox']['max'] = $query->execute()->fetchField(); } @@ -115,9 +114,7 @@ function node_truncate($type, &$context) { while ($row = $result->fetchAssoc()) { $node = node_delete($row['nid'], NULL, TRUE); $context['sandbox']['progress']++; - $context['sandbox']['current_node'] = $node->nid; - $context['results'][] = $node->nid . ' : ' . check_plain($node->title); - $context['message'] = check_plain($node->title); + $context['results'][] = $row['nid']; } if ($context['sandbox']['progress'] != $context['sandbox']['max']) { $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max']; |