You are here

function janrain_capture_tokens in Janrain Registration 7.4

Same name and namespace in other branches
  1. 7.2 janrain_capture.module \janrain_capture_tokens()
  2. 7.3 janrain_capture.module \janrain_capture_tokens()

Implements hook_tokens().

File

./janrain_capture.module, line 313
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;
}