From ad879f299e64006ca45791d11e6a9f4cb7c24892 Mon Sep 17 00:00:00 2001 From: Peter Philipp Date: Mon, 24 Oct 2011 18:45:51 +0200 Subject: [PATCH] Fix for this: http://drupal.org/node/1319872 --- ctools.module | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ctools.module b/ctools.module index d8b8d01..8fe7dd0 100644 --- a/ctools.module +++ b/ctools.module @@ -326,6 +326,10 @@ function ctools_set_variable_token($token) { * $token = ctools_set_variable_token('id', 'mymodule_myfunction'); */ function ctools_set_callback_token($token, $callback) { + // If the callback uses arguments they are considered in the token. + if (is_array($callback)) { + $token .= '-' . md5(serialize($callback)); + } $string = ''; ctools_set_page_token($string, 'callback', $callback); return $string; -- 1.7.7.msysgit.1