function shurly_confirm_delete_form in ShURLy 7
Same name and namespace in other branches
- 6 shurly.module \shurly_confirm_delete_form()
Confirmation form to delete a link
1 string reference to 'shurly_confirm_delete_form'
- shurly_menu in ./
shurly.module - Implements hook_menu().
File
- ./
shurly.module, line 394 - description http://www.youtube.com/watch?v=Qo7qoonzTCE
Code
function shurly_confirm_delete_form($form, &$form_state, $rid) {
$destination = db_query('SELECT destination FROM {shurly} WHERE rid = :rid', array(
'rid' => $rid,
))
->fetchField();
$form['rid'] = array(
'#type' => 'value',
'#value' => $rid,
);
return confirm_form($form, t('Are you sure you want to delete and deactivate this URL?'), rawurldecode($_GET['destination']), t('You are about to deactivate the link which redirects to %url. Once this item is deleted, you will not be able to create another link with the same short URL.', array(
'%url' => $destination,
)));
}