function _notify_get_content_types in Notify 7
Same name and namespace in other branches
- 8 notify.module \_notify_get_content_types()
- 2.0.x notify.module \_notify_get_content_types()
- 1.0.x notify.module \_notify_get_content_types()
Helper function to get array of tracked types.
Parameters
array $ntype: Reference to array with tracked types.
bool $foop: TRUE if we return full list if empty,
1 call to _notify_get_content_types()
- _notify_send in ./
notify.module - Helper function to send the notification e-mail batch.
File
- ./
notify.module, line 499 - Notify module sends e-mail digests of new content and comments.
Code
function _notify_get_content_types(&$ntype, $foop) {
$ntype = array();
foreach (node_type_get_types() as $type => $name) {
if (variable_get(NOTIFY_NODE_TYPE . $type, 0)) {
$ntype[] = $type;
}
}
if ($foop && count($ntype) < 1) {
foreach (node_type_get_types() as $type => $name) {
$ntype[] = $type;
}
}
}