Redirect to referrer, confirm_form I have few confirm_forms which could be invoked from different places. I would like to redirect user to proper place after cancelation. Referrer Header is not good way to do it so I'm looking for good idea to do it in drupal. Maybe something with current_path?

Menu for deletion is defined like so:

$menu['module/entity/%/delete'] = array(
    'title' =&gt; 'Delete directory',
    'description' =&gt; 'Remove directory from ITC Backup',
    'page callback' =&gt; 'drupal_get_form',
    'page arguments' =&gt; array('module_entity_delete_form', 2),
    'access arguments' =&gt; array('Entity administer'),
    'type' =&gt; MENU_LOCAL_TASK
);


Form creation function is (at the moment) defined this way:

function module_entity_delete_form($form, &amp;$form_state, $did) {
    $form['Id'] = array(
        '#type' =&gt; 'hidden',
        '#value' =&gt; $did
    );

    return confirm_form($form, t('Are you sure you want to delete selected entity?'), 'module/entity/list');
}
I think you answered yourself :).  If you want to redirect back to the page the user invoked it from, set $path to current_path() when calling confirm_form.  Otherwise set $path to wherever you want them to go on cancel.