function lc_GetUniqueUrls in Link checker 5
1 call to lc_GetUniqueUrls()
- lc_DoLinkChecks in ./linkchecker.module
File
- ./linkchecker.module, line 450
- This module periodically check html links referenced by drupal nodes
Developed and maintained by Marek Tichy, marek@ecn.cz
Code
function lc_GetUniqueUrls($html) {
if (!$html) {
return false;
}
$urls = lc_GetUrls($html);
$uurls = array();
for ($i = 0; isset($urls[$i]); $i++) {
if (!in_array($urls[$i], $uurls)) {
$uurls[] = $urls[$i];
}
}
return $uurls;
}