function languagefield_token_info in Custom Language field 7
Implements hook_token_info().
File
- ./
languagefield.tokens.inc, line 13 - Token module integration.
Code
function languagefield_token_info() {
$type = array(
'name' => t('Language field'),
'description' => t('Tokens related to languagefields.'),
'needs-data' => 'language-field',
'field' => TRUE,
);
$info['value'] = array(
'name' => t('Language code'),
'description' => t('ISO 639 language code.'),
);
return array(
'types' => array(
'language-field' => $type,
),
'tokens' => array(
'language-field' => $info,
),
);
}