public function StatsPro::generate_term_stats in Statistics Pro 6.2
Same name and namespace in other branches
- 6 statspro.inc \statspro::generate_term_stats()
Count nodes for terms.
Return value
int
1 call to StatsPro::generate_term_stats()
File
- ./
statspro.inc, line 712 - statspro class for Statistics Pro module.
Class
- StatsPro
- Manages the data saving and retrieval according to the user defined parameters.
Code
public function generate_term_stats() {
// get nodes
db_query('INSERT INTO {statspro_term} (tid, ncount)
SELECT tid, COUNT(*) AS num
FROM {term_node}
GROUP BY tid');
return db_affected_rows();
}