You are here

function linkchecker_update_6213 in Link checker 6.2

Add RFC documenation domains back if they have been removed.

File

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

Code

function linkchecker_update_6213() {
  $ret = array();
  $linkchecker_disable_link_check_for_urls = array_filter(preg_split('/(\\r\\n?|\\n)/', variable_get('linkchecker_disable_link_check_for_urls', LINKCHECKER_RESERVED_DOCUMENTATION_DOMAINS)));
  variable_set('linkchecker_disable_link_check_for_urls', implode("\n", array_unique(array_merge(explode("\n", LINKCHECKER_RESERVED_DOCUMENTATION_DOMAINS), $linkchecker_disable_link_check_for_urls))));
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Added RFC documenation domains back if they have been removed.',
  );
  return $ret;
}