function _hybridauth_allow_token_replace in HybridAuth Social Login 7.2
Helper function to check if the string is allowed for token replacements.
1 call to _hybridauth_allow_token_replace()
- _hybridauth_window_close in ./
hybridauth.pages.inc - Close the popup (if used) and redirect if there was no error.
File
- ./
hybridauth.module, line 1296 - Main file for the HybridAuth module.
Code
function _hybridauth_allow_token_replace($string) {
if ($string == variable_get('hybridauth_destination', '')) {
return TRUE;
}
// TODO: add hook so that other modules can provide strings for token replacements.
return FALSE;
}