You are here

function i18n_translation_set_delete_confirm in Internationalization 7

Ask for confirmation of translation set deletion

3 string references to 'i18n_translation_set_delete_confirm'
i18n_menu_menu in i18n_menu/i18n_menu.module
Implements hook_menu()
i18n_path_menu in i18n_path/i18n_path.module
Implements hook_menu()
i18n_taxonomy_menu in i18n_taxonomy/i18n_taxonomy.module
Implements hook_menu().

File

i18n_translation/i18n_translation.module, line 318
Internationalization (i18n) module - Entity translations

Code

function i18n_translation_set_delete_confirm($form, &$form_state, $translation_set) {
  $form['#translation_set'] = $translation_set;
  $form['tsid'] = array(
    '#type' => 'value',
    '#value' => $translation_set->tsid,
  );
  if ($items = $translation_set
    ->item_list()) {
    $form['items'] = array(
      '#type' => 'item',
      '#title' => t('Items in this translation set'),
      '#markup' => theme('item_list', array(
        'items' => $items,
      )),
    );
  }
  return confirm_form($form, t('Are you sure you want to delete %title translation set?', array(
    '%title' => $translation_set
      ->get_title(),
  )), i18n_translation_set_info($translation_set->type, 'list path'), t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}