Skip to content
Snippets Groups Projects
Commit a67e4dde authored by catch's avatar catch
Browse files

Issue #2795581 by timmillwood, ilya.no: Remove unused function statistics_title_list

parent a061dd7e
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -92,8 +92,12 @@ function statistics_cron() {
* A query result containing the node ID, title, user ID that owns the node,
* and the username for the selected node(s), or FALSE if the query could not
* be executed correctly.
*
* @deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0.
* Use \Drupal\statistics\NodeStatisticsDatabaseStorage::fetchAll() instead.
*/
function statistics_title_list($dbfield, $dbrows) {
@trigger_error('statistics_title_list() is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. Use \Drupal\statistics\NodeStatisticsDatabaseStorage::fetchAll() instead.', E_USER_DEPRECATED);
if (in_array($dbfield, ['totalcount', 'daycount', 'timestamp'])) {
$query = db_select('node_field_data', 'n');
$query->addTag('node_access');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment