Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
User Access Keys API provides an API for modules that want to allow users to store access keys for third party services in their Drupal user profiles, as profile.module fields.
Specifically; Validation of user-input access keys via form-alters to profile.module forms and functions for *.install files to manage profile.module fields.
Usage guide
An implementation of the User Access Keys API is quite simple. An example implementation ("Example.com API User Access Keys") is included in the package and also demonstrated below.
The implementing module implements two functions to allow User Access Keys API to manage the profile.module field and validation of the access key.
<?php
/**
* @file example.module
* An EXAMPLE implementation of the User Access Keys API.
*/
/**
* An implementation of hook_user_access_keys()
*/
function example_user_access_keys() {
return (Object) array(
// The machine name of the profile.module field.
'field' => 'example_api_access_key',
This module integrates Drupal Commerce with the hosted payment service 2Checkout.com (hereafter 2CO). Customers will be redirected to 2CO during the checkout process to submit payment and upon return will be sent forward or backward in checkout based upon whether or not they successfully completed payment.