--- path_redirect.module.original 2010-08-10 06:46:01.000000000 +0200 +++ path_redirect.module 2010-09-06 09:32:10.000000000 +0200 @@ -135,6 +135,9 @@ function path_redirect_goto($redirect = drupal_set_html_head(''); } else { + // Increment redirect counter. + db_query("UPDATE {path_redirect} SET counter = counter + 1 WHERE rid = %d", $redirect['rid']); + // Perform the redirect. unset($_REQUEST['destination']); drupal_goto($redirect['redirect_url'], NULL, NULL, $redirect['type']); @@ -311,6 +314,7 @@ function path_redirect_save(&$redirect) 'language' => '', 'type' => variable_get('path_redirect_default_status', 301), 'last_used' => time(), + 'counter' => '', ); // Allow spaces in "from" path