You are here

function radioactivity_admin_delete_profile_form in Radioactivity 5

Same name and namespace in other branches
  1. 6 radioactivity-admin-ui.inc \radioactivity_admin_delete_profile_form()
1 string reference to 'radioactivity_admin_delete_profile_form'
radioactivity_menu in ./radioactivity.module

File

./radioactivity.module, line 386

Code

function radioactivity_admin_delete_profile_form($dpid) {
  $decay_profiles = _radioactivity_get_decay_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/profile_" . $dpid, NULL, t('Delete'));
}