function drush_simplenews_spool_count in Simplenews 7.2
Same name and namespace in other branches
- 8.2 simplenews.drush.inc \drush_simplenews_spool_count()
- 8 simplenews.drush.inc \drush_simplenews_spool_count()
- 7 simplenews.drush.inc \drush_simplenews_spool_count()
- 3.x simplenews.drush.inc \drush_simplenews_spool_count()
Drush command to count the mail spool queue.
File
- ./
simplenews.drush.inc, line 43 - Drush commands for administer Simplenews.
Code
function drush_simplenews_spool_count() {
module_load_include('inc', 'simplenews', 'includes/simplenews.mail');
$count = simplenews_count_spool();
$no_description = drush_get_option(array(
'p',
'pipe',
));
if ($no_description) {
drush_print_pipe($count);
}
else {
drush_log(dt('Current simplenews mail spool count: @count', array(
'@count' => $count,
)), 'status');
}
}