locale_admin_string_delete
- Versions
- 4.7
locale_admin_string_delete($lid)
Delete a string.
Code
modules/locale.module, line 412
<?php
function locale_admin_string_delete($lid) {
$form = array();
$string = db_result(db_query("SELECT source FROM {locales_source} WHERE lid = %d", $lid));
if ($string) {
$form['lid'] = array('#type' => 'value', '#value' => $lid);
$form['string'] = array('#type' => 'item', '#value'=> check_plain($string, 150, FALSE, TRUE));
return confirm_form('locale_string_delete_confirm',
$form,
t('Are you sure you want to delete the following string?'),
'admin/locale/string/search',
'',
t('Delete'),
t('Cancel'));
}
else {
drupal_not_found();
}
}
?>Login or register to post comments 