function image_resize_filter_pathinfo in Image Resize Filter 6
Same name and namespace in other branches
- 8 image_resize_filter.module \image_resize_filter_pathinfo()
- 7 image_resize_filter.module \image_resize_filter_pathinfo()
Utility function to return path information.
2 calls to image_resize_filter_pathinfo()
- image_resize_filter_delete_derivatives in ./
image_resize_filter.module - Delete all generated image when the original file is removed.
- image_resize_filter_process_images in ./
image_resize_filter.module - Processing function for image resize filter. Replace img src properties with a URL to a resized image.
File
- ./
image_resize_filter.module, line 693 - image_resize_filter.module
Code
function image_resize_filter_pathinfo($path) {
$info = pathinfo($path);
// Filename was added in PHP 5.2, add it for older PHP versions.
if (!isset($info['filename'])) {
$info['filename'] = basename($path, '.' . $info['extension']);
}
return $info;
}