function _notify_count in Notify 1.0.x
Same name and namespace in other branches
- 8 notify.module \_notify_count()
- 7 notify.module \_notify_count()
- 2.0.x notify.module \_notify_count()
Count the carious types of content.
1 call to _notify_count()
- QueueForm::buildForm in src/
Form/ QueueForm.php - Form constructor.
File
- ./
notify.module, line 224 - Notify module sends e-mail digests of new content and comments.
Code
function _notify_count($config) {
list($res_nodes, $res_comms, $res_nopub, $res_copub, $res_nounp, $res_counp) = _notify_select_content();
$np = $res_nodes ? count($res_nodes) : 0;
$cp = $res_comms ? count($res_comms) : 0;
$nn = $res_nopub ? count($res_nopub) : 0;
$cn = $res_copub ? count($res_copub) : 0;
$bu = $res_nounp ? count($res_nounp) : 0;
$cu = $res_counp ? count($res_counp) : 0;
return array(
$np,
$cp,
$nn,
$cn,
$bu,
$cu,
);
}