You are here

function hosting_site_count in Hosting 5

Same name and namespace in other branches
  1. 6.2 site/hosting_site.module \hosting_site_count()
  2. 7.4 site/hosting_site.module \hosting_site_count()
  3. 7.3 site/hosting_site.module \hosting_site_count()

Return a count of enabled sites.

This is used by cron and statistics to batch the number of sites that are processed with each call

1 call to hosting_site_count()
hosting_cron_hosting_queues in cron/hosting_cron.module

File

site/hosting_site.module, line 107

Code

function hosting_site_count() {
  return db_result(db_query("SELECT count(nid) FROM {node} WHERE type='site' AND status=1"));
}