function __gotwo_delete in Go - url redirects 5
Drupal 5.x changed to using Forms as functions. All forms are located below here
1 string reference to '__gotwo_delete'
- __gotwo_delete_page in ./
gotwo.module - Remove a go entry
File
- ./
gotwo.module, line 464 - Module that provides easy to use redirection links. A redirection link would be like: http://examples.org/go/a_label http://examples.org/go/123546 http://examples.org/go/or/like/this
Code
function __gotwo_delete($gid) {
$res = db_fetch_object(db_query('SELECT * FROM {gotwo} WHERE gid = %d', $gid));
$form['gid'] = array(
'#type' => 'value',
'#value' => $gid,
);
return confirm_form($form, t('Are you sure you want to delete the go entry with the label %label ?', array(
'%label' => $res->src,
)), 'admin/build/gotwo', t('This action cannot be undone. The link will become broken, a new one might be automatically created when a node linking to it is edited.'), t('Delete'), t('Cancel'));
}