function andromeda_slideshow_delete_form_submit in Andromeda Slideshow 7
Same name and namespace in other branches
- 7.2 includes/andromeda_slideshow.forms.inc \andromeda_slideshow_delete_form_submit()
Submit handler for andromeda_slideshow_delete_form
File
- includes/
andromeda_slideshow.forms.inc, line 162 - Form definitions for andromeda slideshow module
Code
function andromeda_slideshow_delete_form_submit($form, &$form_state) {
$slideshow = $form['#slideshow'];
//delete the slideshow
if (andromeda_slideshow_delete_slideshow($slideshow->sid)) {
drupal_set_message(t('Slideshow @name was deleted successfully.', array(
'@name' => $slideshow->title,
)));
$form_state['redirect'] = 'admin/structure/slideshows';
}
}