function emimage_custom_url_extract in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emimage/providers/custom_url.inc \emimage_custom_url_extract()
Function uses helper function to validate the source of the image. If the source of the image is validated then its return, otherwise an empty array is returned so that the invoking function emfield_parse_embed() performs its own image source validation.
Parameters
$embed An object of type string with the image URL input by the end: user as its value.
Return value
An object of type string with the validated image URL.
An empty object of type array, which indicates the invoking function that it needs to validate the image URL.
See also
function emfield.module line #273
File
- contrib/
emimage/ providers/ custom_url.inc, line 95
Code
function emimage_custom_url_extract($embed = '') {
if ($embed != '' && _emimage_custom_url_validate_image_helper($embed)) {
return $embed;
}
return array();
}