1 token.inc | token_type_load($token_type) |
Loads a token type.
Parameters
string $token_type: A token type name.
Return value
array: An array representing the token type. FALSE if no type found.
File
- core/
includes/ token.inc, line 476 - Backdrop placeholder/token replacement system.
Code
function token_type_load($token_type) {
$info = token_get_info();
return isset($info['types'][$token_type]) ? $info['types'][$token_type] : FALSE;
}