diff --git a/commerce_reorder.module b/commerce_reorder.module index a664f1b..684611f 100644 --- a/commerce_reorder.module +++ b/commerce_reorder.module @@ -55,6 +55,7 @@ function commerce_reorder_views_api() { */ function commerce_reorder_preprocess_link(&$variables) { if (strpos($variables['path'], 'admin/commerce/orders/') === 0 && substr($variables['path'], -8) == '/reorder') { + $path = explode('/', $variables['path']); $variables['options']['query']['token'] = drupal_get_token('commerce_reorder:' . $path[3]); } }