db_field_set_default

Versions
6
db_field_set_default(&$ret, $table, $field, $default)
7
db_field_set_default($table, $field, $default)

Set the default value for a field.

Parameters

$table The table to be altered.

$field The field to be altered.

$default Default value to be set. NULL for 'default NULL'.

Related topics

Code

includes/database/database.inc, line 2427

<?php
function db_field_set_default($table, $field, $default) {
  return Database::getConnection()->schema()->fieldSetDefault($table, $field, $default);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.