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

Simplify messages.

parent fb0151e6
No related branches found
No related tags found
No related merge requests found
...@@ -42,13 +42,13 @@ class FeedsDataProcessor extends FeedsProcessor { ...@@ -42,13 +42,13 @@ class FeedsDataProcessor extends FeedsProcessor {
// Set messages. // Set messages.
if ($inserted) { if ($inserted) {
drupal_set_message(t('Created !number records in !table.', array('!number' => $inserted, '!table' => $this->tableName()))); drupal_set_message(t('Created !number items.', array('!number' => $inserted)));
} }
elseif ($updated) { elseif ($updated) {
drupal_set_message(t('Updated !number records in !table.', array('!number' => $updated, '!table' => $this->tableName()))); drupal_set_message(t('Updated !number items.', array('!number' => $updated)));
} }
else { else {
drupal_set_message(t('There are no new records.')); drupal_set_message(t('There are no new items.'));
} }
} }
...@@ -62,7 +62,7 @@ class FeedsDataProcessor extends FeedsProcessor { ...@@ -62,7 +62,7 @@ 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(t('Deleted !number records from !table.', array('!number' => $num, '!table' => $this->tableName()))); drupal_set_message(t('Deleted !number items.', array('!number' => $num)));
} }
/** /**
......
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