You are here

function date_api_schema_alter in Date 6.2

Implementation of hook_schema_alter(). We alter $schema by reference.

Parameters

$schema: The system-wide schema collected by drupal_get_schema().

File

./date_api.install, line 138

Code

function date_api_schema_alter(&$schema) {

  // Add field to existing schema.
  $schema['users']['fields']['timezone_name'] = array(
    'type' => 'varchar',
    'length' => 50,
    'not null' => TRUE,
    'default' => '',
    'description' => t('Per-user timezone name.'),
  );
}