function user_update_8005

Creates a preferred_admin_langcode column.

Related topics

File

drupal/core/modules/user/user.install, line 577
Install, update and uninstall functions for the user module.

Code

function user_update_8005() {
  $spec = array(
    'description' => 'The {language}.langcode that the user prefers for viewing administration pages.',
    'type' => 'varchar',
    'length' => 12,
    'not null' => TRUE,
    'default' => '',
  );
  db_add_field('users', 'preferred_admin_langcode', $spec);
}