function royalslider_optionset_form_delete_submit in RoyalSlider Integration 7
Submit handler for deleting an option set.
File
- ./
royalslider.admin.inc, line 1068 - Admin forms for RoyalSlider.
Code
function royalslider_optionset_form_delete_submit($form, &$form_state) {
$optionset =& $form_state['optionset'];
$op = $optionset->export_type & EXPORT_IN_CODE ? 'reverted' : 'deleted';
ctools_include('export');
ctools_export_crud_delete('royalslider_optionset', $optionset);
drupal_set_message(t('Option set %name was ' . $op . '.', array(
'%name' => $optionset->name,
)));
$form_state['redirect'] = 'admin/config/media/royalslider';
}