You are here

function calendar_systems_profile_delete_confirm in Calendar Systems 8

Same name and namespace in other branches
  1. 6.3 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm()
  2. 6 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm()
  3. 7.3 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm()
  4. 7 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm()
  5. 7.2 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm()

Form callback for profile removal confirmarion.

1 string reference to 'calendar_systems_profile_delete_confirm'
calendar_systems_menu in ./calendar_systems.module
Implements hook_menu().

File

./calendar_systems.admin.inc, line 161
Contains Calendar Systems administration form callbacks.

Code

function calendar_systems_profile_delete_confirm($form, &$form_state, $profile) {
  $languages = _calendar_systems_langauges();
  $language = $languages[$profile];

  // Build form array:
  $form = array();
  $form['profile'] = array(
    '#type' => 'value',
    '#value' => $profile,
  );

  // Create the confirmation
  // form and let it be rendered:
  return confirm_form($form, t('Are you sure you want to remove the profile for %name?', array(
    '%name' => $language['name'],
  )), 'admin/config/regional/calendar-systems', t('This action cannot be undone.'), t('Remove'), t('Cancel'));
}