You are here

function node_gallery_relationship_delete_form_submit in Node Gallery 6.3

Submit handler for the deletion form.

_state

Parameters

$form:

File

./node_gallery.admin.inc, line 561

Code

function node_gallery_relationship_delete_form_submit($form, &$form_state) {
  node_gallery_delete_relationship($form_state['values']['rid']);
  drupal_set_message(t('Relationship %name has been deleted.', array(
    '%name' => $form_state['values']['relationship_name'],
  )));
  watchdog('node_gallery', 'Node Gallery relationship deleted.', WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/settings/node_gallery';
}