You are here

function linkchecker_modules_disabled in Link checker 7

If the core modules are disabled the integration need to be disabled.

File

./linkchecker.install, line 210
Installation file for Link Checker module.

Code

function linkchecker_modules_disabled($modules) {

  // Disable link checks for custom blocks.
  if (in_array('block', $modules)) {
    variable_set('linkchecker_scan_blocks', 0);
    drupal_set_message(t('Link checks for blocks have been disabled.'));
  }

  // Disable link checks for comments.
  if (in_array('comment', $modules)) {
    foreach (node_type_get_names() as $type => $name) {
      variable_del('linkchecker_scan_comment_' . $type);
    }
    drupal_set_message(t('Link checks for comments have been disabled.'));
  }
}