You are here

function image_gallery_confirm_delete_form_submit in Image 7

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

Form submit handler.

File

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

Code

function image_gallery_confirm_delete_form_submit($form, &$form_state) {
  taxonomy_del_term($form_state['values']['tid']);
  drupal_set_message(t('The image gallery %term and all sub-galleries have been deleted.', array(
    '%term' => $form_state['values']['name'],
  )));
  $form_state['redirect'] = 'admin/content/image';
}