You are here

function calendar_systems_profile_delete_confirm in Calendar Systems 6

Same name and namespace in other branches
  1. 8 calendar_systems.admin.inc \calendar_systems_profile_delete_confirm()
  2. 6.3 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()

Delete editor profile confirmation form.

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

File

./calendar_systems.admin.inc, line 457
Integrate Calendar systems editors into Drupal.

Code

function calendar_systems_profile_delete_confirm(&$form_state, $profile) {
  $languages = calendar_systems_get_all_langauges();
  $language = $languages[$profile];
  $form['format'] = array(
    '#type' => 'value',
    '#value' => $language['name'],
  );
  return confirm_form($form, t('Are you sure you want to remove the profile for %name?', array(
    '%name' => $language['name'],
  )), 'admin/settings/calendar_systems', t('This action cannot be undone.'), t('Remove'), t('Cancel'));
}