function _oauthconnector_provider_schema_1 in OAuth Connector 6
Same name and namespace in other branches
- 7 oauthconnector.install \_oauthconnector_provider_schema_1()
2 calls to _oauthconnector_provider_schema_1()
- oauthconnector_schema in ./
oauthconnector.install - Implementation of hook_schema().
- oauthconnector_update_6100 in ./
oauthconnector.install
File
- ./
oauthconnector.install, line 34 - Install, update and uninstall functions for the OAuth Connector module.
Code
function _oauthconnector_provider_schema_1() {
return array(
'description' => t('Stores information about OAuth providers.'),
'export' => array(
'identifier' => 'provider',
'export callback' => 'oauthconnector_provider_export',
'list callback' => 'oauthconnector_provider_list',
),
'fields' => array(
'pid' => array(
'description' => t('The primary identifier for a provider.'),
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'no export' => TRUE,
),
'name' => array(
'description' => t('The machine-readable name of the provider.'),
'type' => 'varchar',
'length' => 100,
'not null' => TRUE,
),
'title' => array(
'description' => t('The human-readable title of the provider.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'url' => array(
'description' => t('A URL to the OAuth provider, typically to the front page.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'csid' => array(
'description' => 'The {oauth_common_consumer}.csid of the OAuth consumer to use.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'no export' => TRUE,
),
'consumer_advanced' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Serialized advanced settings for an oauth consumer, like signature method.',
'not null' => TRUE,
'serialize' => TRUE,
'object default' => array(
'signature method' => 'HMAC-SHA1',
'authentication realm' => '',
'request token endpoint' => '/oauth/request_token',
'authorization endpoint' => '/oauth/authorize',
'access token endpoint' => '/oauth/access_token',
),
),
'mapping' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Serialized mapping between the response of the API and Connector properties.',
'not null' => TRUE,
'serialize' => TRUE,
'object default' => array(),
),
),
'primary key' => array(
'pid',
),
'unique keys' => array(
'name' => array(
'name',
),
),
);
}