You are here

function royalslider_optionset_form_delete in RoyalSlider Integration 7

Form builder; Form to delete a given option set.

File

./royalslider.admin.inc, line 1050
Admin forms for RoyalSlider.

Code

function royalslider_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/royalslider', NULL, t($op), t('Cancel'));
}