function user_badges_image_delete in User Badges 6.2
Same name and namespace in other branches
- 5 user_badges.module \user_badges_image_delete()
- 6 user_badges.admin.inc \user_badges_image_delete()
Delete the specified image
1 call to user_badges_image_delete()
- user_badges_images_form_submit in ./
user_badges.admin.inc - Submission action for user_badges_images_form
File
- ./
user_badges.admin.inc, line 460 - @brief User Badges admin functions
Code
function user_badges_image_delete($to_delete) {
foreach ($to_delete as $path) {
if (file_check_location($path, file_create_path('badges'))) {
file_delete($path);
}
}
}