function _image_url_formater_get_filename in Image URL Formatter 7
Returns the filename from the url.
1 call to _image_url_formater_get_filename()
- image_url_formatter_convert_full_url in ./
image_url_formatter.module - Converts a full URL to the choosen format.
File
- ./
image_url_formatter.module, line 294 - Add an URL formatter for image field
Code
function _image_url_formater_get_filename($url) {
$url = _image_url_formatter_get_absolute_file_url($url);
$exploded_url = explode('/', $url);
$url = array_pop($exploded_url);
return $url;
}