function fckeditor_ask_delete_confirmation in FCKeditor - WYSIWYG HTML editor 6
Same name and namespace in other branches
- 5.2 fckeditor.module \fckeditor_ask_delete_confirmation()
1 call to fckeditor_ask_delete_confirmation()
- fckeditor_admin in ./
fckeditor.module - Controller for FCKeditor administrative settings.
File
- ./
fckeditor.module, line 2332 - FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben
Code
function fckeditor_ask_delete_confirmation($is_global, $profile = "") {
if (!$is_global) {
$delete_link = l(t('Yes, delete!'), 'admin/settings/fckeditor/deleteconfirmed/' . urlencode($profile));
$profile_name = t('!profile profile', array(
'!profile' => $profile,
));
}
else {
$delete_link = l(t('Yes, delete!'), 'admin/settings/fckeditor/deletegconfirmed');
$profile_name = t('Global Profile');
}
drupal_set_title(t('Confirm profile deletion'));
drupal_set_message(t("You're about to delete the FCKeditor profile, read the question below carefully."), "warning");
return t("<p>Are you sure that you want to delete the !profile?</p><p>!yes !no</p>", array(
'!profile' => $profile_name,
'!yes' => $delete_link,
'!no' => l(t('Cancel'), 'admin/settings/fckeditor', array(
'attributes' => array(
'style' => 'margin-left:40px',
),
)),
));
}