function hybridauth_endpoint in HybridAuth Social Login 7.2
Same name and namespace in other branches
- 6.2 hybridauth.pages.inc \hybridauth_endpoint()
- 7 hybridauth.pages.inc \hybridauth_endpoint()
@file HybridAuth module pages.
1 string reference to 'hybridauth_endpoint'
- hybridauth_menu in ./
hybridauth.module - Implements hook_menu().
File
- ./
hybridauth.pages.inc, line 7 - HybridAuth module pages.
Code
function hybridauth_endpoint() {
// Make sure the session is started, HybridAuth library needs it.
hybridauth_session_start();
if ($lib_path = _hybridauth_library_path()) {
try {
// If Composer install was executed in the Hybridauth library use that
// autoloader.
if (file_exists($lib_path . '/../vendor/autoload.php')) {
require_once $lib_path . '/../vendor/autoload.php';
}
require_once $lib_path . '/index.php';
} catch (Exception $e) {
watchdog_exception('hybridauth', $e);
}
}
return MENU_ACCESS_DENIED;
}