You are here

function radioactivity_admin_delete_profile_form in Radioactivity 6

Same name and namespace in other branches
  1. 5 radioactivity.module \radioactivity_admin_delete_profile_form()
1 string reference to 'radioactivity_admin_delete_profile_form'
radioactivity_menu in ./radioactivity.module

File

./radioactivity-admin-ui.inc, line 310
Radioactivity core admin UI.

Code

function radioactivity_admin_delete_profile_form($form_id, $dpid) {
  $decay_profiles = radioactivity_get_decay_profiles();

  // sanity check for dpid
  if (!isset($decay_profiles[$dpid])) {
    drupal_goto('admin/settings/radioactivity/list_profiles');
  }
  return confirm_form(array(
    'decay_profile_id' => array(
      '#type' => 'hidden',
      '#value' => $dpid,
    ),
  ), t('Are you sure you want to delete radiation decay profile @label (@id)?', array(
    '@label' => $decay_profiles[$dpid]['label'],
    '@id' => $dpid,
  )), "admin/settings/radioactivity/edit_profile/" . $dpid, NULL, t('Delete'));
}