Révision 3753f249
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/sites/all/modules/ctools/plugins/contexts/token.inc | ||
---|---|---|
51 | 51 |
function ctools_context_token_convert($context, $token) { |
52 | 52 |
$tokens = token_info(); |
53 | 53 |
list($type, $token) = explode(':', $token, 2); |
54 |
$parts = explode(':', $token, 2); |
|
54 | 55 |
$real_type = isset($tokens['types'][$type]['type']) ? $tokens['types'][$type]['type'] : $type; |
55 |
if (isset($tokens['tokens'][$real_type][$token])) {
|
|
56 |
if (isset($tokens['tokens'][$real_type][$parts[0]])) {
|
|
56 | 57 |
$values = token_generate($type, array($token => $token)); |
57 | 58 |
if (isset($values[$token])) { |
58 | 59 |
return $values[$token]; |
Formats disponibles : Unified diff
Weekly update of contrib modules