You are here

function system_module_users_schema in Util 6.2

Same name and namespace in other branches
  1. 6 system_module.install \system_module_users_schema()

File

./system_module.install, line 16
Customize System Modules fieldsets

Code

function system_module_users_schema() {

  // This is not used very much yet.
  // Settings are still saved in user.data field.
  // In next update this module will move away from using user.data and instead use
  // its own configuration table
  $schema['system_module_users'] = array(
    'description' => t('Tracks users of this module to enable proper cleanup when module is disabled'),
    'fields' => array(
      'uid' => array(
        'description' => t('User\'s ID'),
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'data' => array(
        'description' => t('Stores serialized array informing of the kind of customizations made by the user'),
        'type' => 'text',
        'size' => 'normal',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}