You are here

function hook_janrain_capture_no_oauth in Janrain Registration 7

Same name and namespace in other branches
  1. 7.4 janrain_capture.api.php \hook_janrain_capture_no_oauth()
  2. 7.2 janrain_capture.api.php \hook_janrain_capture_no_oauth()
  3. 7.3 janrain_capture.api.php \hook_janrain_capture_no_oauth()

OAuth endpoint called without code

Triggered when the janrain_capture/oauth URL is requested without a 'code' parameter

Return value

boolean Display the default message or not

1 invocation of hook_janrain_capture_no_oauth()
janrain_capture_oauth in ./janrain_capture.pages.inc
Callback for the janrain_capture/oauth menu item. This serves as the redirect_uri Capture redirects the user to and performs the authentication.

File

./janrain_capture.api.php, line 157
Hooks provided by Janrain Capture

Code

function hook_janrain_capture_no_oauth() {
  drupal_set_message(t('You cannot access this page directly.'), 'error');
  return FALSE;
}