You are here

function _emimage_custom_url_get_domain_album in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 6 contrib/emimage/providers/custom_url.inc \_emimage_custom_url_get_domain_album()
1 call to _emimage_custom_url_get_domain_album()
emimage_custom_url_data in contrib/emimage/providers/custom_url.inc
This function will get additional information of the image source input by the end user. It will also use a helper function to validate the source of the image.

File

contrib/emimage/providers/custom_url.inc, line 69

Code

function _emimage_custom_url_get_domain_album($url, $server) {
  $albumBegin = strpos($url, $server) + strlen($server);
  $albumEnd = strrpos($url, '/') + 1;
  return substr($url, $albumBegin, $albumEnd - $albumBegin);
}