function flexslider_optionset_form_delete in Flex Slider 7
Same name and namespace in other branches
- 7.2 flexslider.admin.inc \flexslider_optionset_form_delete()
Form builder; Form to delete a given option set.
1 string reference to 'flexslider_optionset_form_delete'
- flexslider_menu in ./
flexslider.module - Implements hook_menu().
File
- ./
flexslider.admin.inc, line 398 - Administrative page callbacks for the flexslider module.
Code
function flexslider_optionset_form_delete($form, &$form_state, $optionset) {
$form_state['optionset'] =& $optionset;
// Deleting an export in code will revert it.
$op = $optionset->export_type & EXPORT_IN_CODE ? 'Revert' : 'Delete';
return confirm_form($form, t('Are you sure you want to @action the option set %name?', array(
'@action' => t(drupal_strtolower($op)),
'%name' => $optionset->name,
)), 'admin/config/media/flexslider', NULL, t($op), t('Cancel'));
}