function hybridauth_token_list in HybridAuth Social Login 6.2
Implements hook_token_list().
File
- ./
hybridauth.tokens.inc, line 11 - Builds placeholder replacement tokens for HybridAuth-related data.
Code
function hybridauth_token_list($type = 'all') {
$tokens = array();
if ($type == 'user' || $type == 'all') {
foreach (hybridauth_fields_list() as $key => $value) {
$tokens['user']['hybridauth_' . $key] = $value . ' ' . t('provided by HybridAuth.');
}
}
if ($type == 'hybridauth' || $type == 'all') {
foreach (hybridauth_fields_list() as $key => $value) {
$tokens['hybridauth'][$key] = $value . ' ' . t('provided by HybridAuth.');
}
}
return $tokens;
}