Skip to content
Snippets Groups Projects
Commit 9635fddd authored by Alex Barth's avatar Alex Barth
Browse files

Adjust messages - show different one when no items are deleted.

parent c4d28df9
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,12 @@ class FeedsDataProcessor extends FeedsProcessor { ...@@ -72,7 +72,12 @@ class FeedsDataProcessor extends FeedsProcessor {
'feed_nid' => $source->feed_nid, 'feed_nid' => $source->feed_nid,
); );
$num = $this->handler()->delete($clause); $num = $this->handler()->delete($clause);
drupal_set_message('All items of this feed have been deleted.'); if ($num) {
drupal_set_message('All items have been deleted.');
}
else {
drupal_set_message('There were no items to delete.');
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment