You are here

function user_badges_image_delete in User Badges 5

Same name and namespace in other branches
  1. 6.2 user_badges.admin.inc \user_badges_image_delete()
  2. 6 user_badges.admin.inc \user_badges_image_delete()
1 call to user_badges_image_delete()
user_badges_images_form_submit in ./user_badges.module

File

./user_badges.module, line 486
@brief User Badges module file

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);
    }
  }
}