You are here

function _drush_ip_backlog_nodes_list in IP address manager 7.2

Get watchdog (node added) list.

1 call to _drush_ip_backlog_nodes_list()
drush_ip_backlog_nodes in ./ip.drush.inc
Drush command: ip backlog comments.

File

./ip.drush.inc, line 184

Code

function _drush_ip_backlog_nodes_list() {
  $list = array();
  if (module_exists('dblog')) {
    $list = db_query("SELECT wid, hostname, link" . " FROM {watchdog}" . " WHERE type = 'content'" . " AND message = :msg", array(
      ':msg' => '@type: added %title.',
    ))
      ->fetchAll();
  }
  return $list;
}