function hybridauth_endpoint in HybridAuth Social Login 6.2
Same name and namespace in other branches
- 7.2 hybridauth.pages.inc \hybridauth_endpoint()
- 7 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 the session is started, HybridAuth library needs it.
// This is needed only for Pressflow that has drupal_session_start() function.
if (function_exists('drupal_session_start')) {
drupal_session_start();
}
if ($lib_path = _hybridauth_library_path()) {
try {
require_once $lib_path . '/index.php';
} catch (Exception $e) {
//watchdog_exception('hybridauth', $e);
watchdog('hybridauth', $e
->getMessage(), array(), WATCHDOG_ERROR);
}
}
return MENU_ACCESS_DENIED;
}