function token_asort_tokens in Token 7
uasort() callback to sort tokens by the 'name' property.
1 string reference to 'token_asort_tokens'
- token_get_info in ./
token.module - Retrieve, sort, store token info from the cache.
File
- ./
token.module, line 580 - Enhances the token API in core: adds a browseable UI, missing tokens, etc.
Code
function token_asort_tokens($token_a, $token_b) {
return strnatcmp($token_a['name'], $token_b['name']);
}