function linkchecker_update_7004 in Link checker 7
Add status code 206 to the default list of ignored response codes.
File
- ./
linkchecker.install, line 316 - Installation file for Link Checker module.
Code
function linkchecker_update_7004() {
$ignore_response_codes = preg_split('/(\\r\\n?|\\n)/', variable_get('linkchecker_ignore_response_codes', "200\n206\n302\n304\n401\n403"));
if (!in_array('206', $ignore_response_codes)) {
$ignore_response_codes[] = '206';
sort($ignore_response_codes);
variable_set('linkchecker_ignore_response_codes', implode("\n", $ignore_response_codes));
return t('Added the status code 206 to the list of ignored response codes.');
}
else {
return t('No action taken. The status code 206 was already on the list of ignored response codes.');
}
}