function i18n_token_values in Internationalization 5.2
Same name and namespace in other branches
- 5.3 i18n.module \i18n_token_values()
Implementation of hook_token_values().
File
- ./
i18n.module, line 918 - Internationalization (i18n) module
Code
function i18n_token_values($type, $object = NULL) {
$values = array();
switch ($type) {
case 'node':
case 'taxonomy':
$values['lang'] = i18n_node_get_lang($object->nid, '');
break;
}
return $values;
}