function flexslider_optionset_form_delete_submit in Flex Slider 7
Same name and namespace in other branches
- 7.2 flexslider.admin.inc \flexslider_optionset_form_delete_submit()
Submit handler for deleting an option set.
File
- ./
flexslider.admin.inc, line 416 - Administrative page callbacks for the flexslider module.
Code
function flexslider_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('flexslider_optionset', $optionset);
drupal_set_message(t('Option set %name was ' . $op . '.', array(
'%name' => $optionset->name,
)));
$form_state['redirect'] = 'admin/config/media/flexslider';
}