You are here

function galleria_optionset_form_delete in Galleria 7

Form builder; Form to delete a given option set.

1 string reference to 'galleria_optionset_form_delete'
galleria_menu in ./galleria.module
Implements hook_menu().

File

includes/galleria.admin.inc, line 864
Administrative page callbacks for the galleria module.

Code

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