function _services_key_auth_permissions in Services 7
Same name and namespace in other branches
- 6.2 auth/services_keyauth/services_keyauth.install \_services_key_auth_permissions()
3 calls to _services_key_auth_permissions()
- services_keyauth_install in auth/
services_keyauth/ services_keyauth.install - Implements hook_install().
- services_keyauth_update_6001 in auth/
services_keyauth/ services_keyauth.install - services_keyauth_update_6005 in auth/
services_keyauth/ services_keyauth.install
File
- auth/
services_keyauth/ services_keyauth.install, line 95 - @author Services Dev Team
Code
function _services_key_auth_permissions() {
$schema['services_key_permissions'] = array(
'description' => 'Stores services method\'s access rights on a per API key basis.',
'fields' => array(
'kid' => array(
'description' => 'The service key ID.',
'type' => 'char',
'length' => 32,
'not null' => TRUE,
'default' => '',
),
'method' => array(
'description' => 'Name of service method.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
),
'indexes' => array(
'api_key' => array(
'kid',
),
'method' => array(
'method',
),
),
'unique key' => array(
'key_method' => array(
'kid',
'method',
),
),
);
db_create_table('services_key_permissions', $schema['services_key_permissions']);
}