function shrinktheweb_getThumbnailStatus in ShrinkTheWeb 7
Same name and namespace in other branches
- 8 shrinktheweb.api.inc \shrinktheweb_getThumbnailStatus()
- 6 shrinktheweb.api.inc \shrinktheweb_getThumbnailStatus()
1 call to shrinktheweb_getThumbnailStatus()
- shrinktheweb_getXMLResponse in ./
shrinktheweb.api.inc - store the XML response in an array and generate status bits
File
- ./
shrinktheweb.api.inc, line 562
Code
function shrinktheweb_getThumbnailStatus($s) {
$sRegex = '/<[^:]*:ThumbnailResult?[^>]*>[^<]*<[^:]*:Thumbnail\\s*(?:Exists=\\"((?:true)|(?:false))\\")+[^>]*>([^<]*)<\\//';
if (preg_match($sRegex, $s, $sMatches)) {
return array(
'stw_action' => $sMatches[1],
'thumbnail' => $sMatches[2],
);
}
return false;
}