You are here

function image_gallery_confirm_delete_form in Image 7

Same name and namespace in other branches
  1. 6 contrib/image_gallery/image_gallery.admin.inc \image_gallery_confirm_delete_form()

Form for confirmation for deleting a gallery.

1 string reference to 'image_gallery_confirm_delete_form'
image_gallery_admin_edit in contrib/image_gallery/image_gallery.admin.inc
Menu callback for editing or adding a gallery.

File

contrib/image_gallery/image_gallery.admin.inc, line 232
Contains menu callbacks for image_gallery admin pages.

Code

function image_gallery_confirm_delete_form(&$form_state, $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'));
}