function _emimage_custom_url_scrape_image_title in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emimage/providers/custom_url.inc \_emimage_custom_url_scrape_image_title()
Function uses a helper function _get_domain_helper to get the name of the domain where the image is hosted.
Parameters
$url An object of type String with the image URL as its value.:
Return value
An object of type String with the image title as its value.
1 call to _emimage_custom_url_scrape_image_title()
- emimage_custom_url_image_title in contrib/
emimage/ providers/ custom_url.inc - This function is an implementation of the emimage_PROVIDER_image_title()
File
- contrib/
emimage/ providers/ custom_url.inc, line 149
Code
function _emimage_custom_url_scrape_image_title($url) {
static $title;
if (isset($title[$url])) {
return $title[$url];
}
return $title[$url] = _emimage_custom_url_get_domain_helper($url);
}