function _oauthconnector_fields_schema_1 in OAuth Connector 7
2 calls to _oauthconnector_fields_schema_1()
- oauthconnector_schema in ./
oauthconnector.install - Implements hook_schema().
- oauthconnector_update_7000 in ./
oauthconnector.install - Add table for fields.
File
- ./
oauthconnector.install, line 127 - Install, update and uninstall functions for the OAuth Connector module.
Code
function _oauthconnector_fields_schema_1() {
return array(
'description' => t('Stores information about fields definition.'),
'fields' => array(
'name' => array(
'description' => 'The system name.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
'title' => array(
'description' => t('The title of the field.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'description' => array(
'description' => t('The description for the field.'),
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'required' => array(
'description' => 'Is this field required',
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'default' => 0,
),
),
'primary key' => array(
'name',
),
);
}