function hybridauth_endpoint in HybridAuth Social Login 7
Same name and namespace in other branches
- 6.2 hybridauth.pages.inc \hybridauth_endpoint()
- 7.2 hybridauth.pages.inc \hybridauth_endpoint()
1 string reference to 'hybridauth_endpoint'
- hybridauth_menu in ./
hybridauth.module - Implements hook_menu().
File
- ./
hybridauth.pages.inc, line 3
Code
function hybridauth_endpoint() {
// Make sure it's Drupal that starts the session.
drupal_session_start();
$lib_path = libraries_get_path('hybridauth', FALSE);
if ($lib_path) {
try {
require_once $lib_path . '/index.php';
} catch (Exception $e) {
// TODO: How should we handle this?
watchdog_exception('hybridauth', $e);
}
}
return MENU_ACCESS_DENIED;
}