1 comment.install | comment_update_1004() |
Add an Override column for automatic comment closing for individual nodes.
Related topics
File
- core/
modules/ comment/ comment.install, line 416 - Install, update and uninstall functions for the Comment module.
Code
function comment_update_1004() {
if (db_field_exists('node', 'comment_close_override')) {
return;
}
$comment_close_override_column = array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'size' => 'tiny',
'description' => 'Override the automatic comment closer. (0 = Do not override, 1 = Override)',
);
db_add_field('node', 'comment_close_override', $comment_close_override_column);
}