function commerce_square_obtain_token_access in Commerce Square Connect 7
Square OAuth flow menu access callback.
1 string reference to 'commerce_square_obtain_token_access'
- commerce_square_menu in ./
commerce_square.module - Implements hook_menu().
File
- ./
commerce_square.module, line 370 - Module file for Commerce Square.
Code
function commerce_square_obtain_token_access() {
if (empty($_GET['state'])) {
return FALSE;
}
if (drupal_valid_token(check_plain($_GET['state']))) {
return TRUE;
}
return FALSE;
}