function janrain_capture_token_info in Janrain Registration 7.2
Same name and namespace in other branches
- 7.4 janrain_capture.module \janrain_capture_token_info()
- 7.3 janrain_capture.module \janrain_capture_token_info()
Implements hook_token_info(). Provide a token for:
- SSO URL ` the href attribute of the sign-in link. Allows use of the URL in Content (where tokens are available)
File
- ./
janrain_capture.module, line 260 - This module implements authentication endpoints for Janrain Capture.
Code
function janrain_capture_token_info() {
$types['janrain_capture'] = array(
'name' => t("Janrain Capture Tokens"),
'description' => t("Tokens for Janrain Capture."),
);
// Janrain Capture specific tokens.
$janrain_capture['sso_url'] = array(
'name' => t("Janrain SSO URL"),
'description' => t("A link for Social Sign-On using Janrain Capture"),
);
return array(
'types' => $types,
'tokens' => array(
'janrain_capture' => $janrain_capture,
),
);
}