You are here

drupalmonitor_connector.node.inc in Drupalmonitor 7

This file handles node metrics.

File

drupalmonitor_connector.node.inc
View source
<?php

/**
 * @file
 * This file handles node metrics.
 */

/**
 * Returns node count per content type.
 */
function drupalmonitor_connector_node_contenttypes() {
  return db_query("SELECT n.type, count(*) as counter FROM {node} n GROUP BY n.type")
    ->fetchAllKeyed();
}

Functions

Namesort descending Description
drupalmonitor_connector_node_contenttypes Returns node count per content type.