function linkchecker_scan_comment_types in Link checker 7
Return all content type enable with comment link checking.
Return value
array An array of node type names, keyed by the type.
6 calls to linkchecker_scan_comment_types()
- linkchecker_analyze_links_submit in ./
linkchecker.admin.inc - Submit callback.
- linkchecker_clear_analyze_links_submit in ./
linkchecker.admin.inc - Submit callback.
- linkchecker_user_report_page in ./
linkchecker.pages.inc - Menu callback for author specific reporting.
- _linkchecker_cleanup_links in ./
linkchecker.module - Run perodically via cron and delete all links without a references.
- _linkchecker_link_comment_ids in ./
linkchecker.module - Returns IDs of comments that contain a link which the current user is allowed to view.
File
- ./
linkchecker.module, line 2537 - This module periodically check links in given node types, blocks etc.
Code
function linkchecker_scan_comment_types() {
$types = array();
foreach (node_type_get_names() as $type => $name) {
if (variable_get('linkchecker_scan_comment_' . $type, FALSE)) {
$types[$type] = $type;
}
}
return $types;
}