function image_gallery_confirm_delete in Image 5
Same name and namespace in other branches
- 5.2 contrib/image_gallery/image_gallery.module \image_gallery_confirm_delete()
1 string reference to 'image_gallery_confirm_delete'
- image_gallery_admin_add in contrib/
image_gallery/ image_gallery.module
File
- contrib/
image_gallery/ image_gallery.module, line 272
Code
function image_gallery_confirm_delete($tid) {
$term = taxonomy_get_term($tid);
$form['tid'] = array(
'#type' => 'value',
'#value' => $tid,
);
$form['name'] = array(
'#type' => 'value',
'#value' => $term->name,
);
return confirm_form($form, t('Are you sure you want to delete the image gallery %name?', array(
'%name' => $term->name,
)), 'admin/content/image', t('Deleting an image gallery will delete all sub-galleries. This action cannot be undone.'), t('Delete'), t('Cancel'));
}