You are here

function node_gallery_config_delete_form_submit in Node Gallery 6.2

Same name and namespace in other branches
  1. 6 node_gallery.admin.inc \node_gallery_config_delete_form_submit()

File

./node_gallery.admin.inc, line 585
Node gallery admin page file

Code

function node_gallery_config_delete_form_submit($form, &$form_state) {
  variable_del($form_state['values']['gallery_id']);
  drupal_set_message(t('Gallery type config %name has been deleted.', array(
    '%name' => $form_state['values']['gallery_name'],
  )));
  watchdog('node_gallery', 'Node Gallery relationship deleted.', WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/settings/node_gallery';
}