You are here

function linkchecker_update_7013 in Link checker 7

Migrate node type and comment settings to content types settings.

File

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

Code

function linkchecker_update_7013() {
  $types = array_keys(array_filter(variable_get('linkchecker_scan_nodetypes', array())));
  foreach ($types as $type) {
    variable_set('linkchecker_scan_node_' . $type, TRUE);
    if (variable_get('linkchecker_scan_comments', 0)) {
      variable_set('linkchecker_scan_comment_' . $type, TRUE);
    }
  }
  variable_del('linkchecker_scan_nodetypes');
  variable_del('linkchecker_scan_comments');
  return t('Upgraded node type and comment settings.');
}