function janrain_capture_tokens in Janrain Registration 7.2
Same name and namespace in other branches
- 7.4 janrain_capture.module \janrain_capture_tokens()
- 7.3 janrain_capture.module \janrain_capture_tokens()
Implements hook_tokens().
File
- ./
janrain_capture.module, line 282 - This module implements authentication endpoints for Janrain Capture.
Code
function janrain_capture_tokens($type, $tokens, array $data = array(), array $options = array()) {
$replacements = array();
if ($type == 'janrain_capture') {
foreach ($tokens as $name => $original) {
switch ($name) {
case 'sso_url':
$replacements[$original] = janrain_capture_url();
break;
}
}
}
return $replacements;
}