1 comment.install comment_update_1010()

Change the name field length to the user's mail length.

Related topics

File

core/modules/comment/comment.install, line 548
Install, update and uninstall functions for the Comment module.

Code

function comment_update_1010() {
  db_change_field('comment', 'name', 'name', 
  array(
    'type' => 'varchar',
    'length' => 254,
    'default' => NULL,
    'description' => "The comment author's name. Uses {users}.name if the user is logged in, otherwise uses the value typed into the comment form.",
  )
  );
}