You are here

function linkchecker_scan_node_types in Link checker 7

Return all content type enable with link checking.

Return value

array An array of node type names, keyed by the type.

6 calls to linkchecker_scan_node_types()
drush_linkchecker_analyze in ./linkchecker.drush.inc
Callback for command linkchecker-analyze.
drush_linkchecker_clear in ./linkchecker.drush.inc
Callback for command linkchecker-analyze.
linkchecker_analyze_links_submit in ./linkchecker.admin.inc
Submit callback.
linkchecker_clear_analyze_links_submit in ./linkchecker.admin.inc
Submit callback.
_linkchecker_cleanup_links in ./linkchecker.module
Run perodically via cron and delete all links without a references.

... See full list

File

./linkchecker.module, line 2521
This module periodically check links in given node types, blocks etc.

Code

function linkchecker_scan_node_types() {
  $types = array();
  foreach (node_type_get_names() as $type => $name) {
    if (variable_get('linkchecker_scan_node_' . $type, FALSE)) {
      $types[$type] = $type;
    }
  }
  return $types;
}