function hosting_site_count in Hosting 5
Same name and namespace in other branches
- 6.2 site/hosting_site.module \hosting_site_count()
- 7.4 site/hosting_site.module \hosting_site_count()
- 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()
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"));
}