function system_update_6011
Add language support to nodes
Related topics
Archivo
- drupal-6.x/
modules/ system/ system.install, line 1414
Código
function system_update_6011() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'pgsql':
db_add_column($ret, 'node', 'language', 'varchar(12)', array('default' => "''", 'not null' => TRUE));
break;
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {node} ADD language varchar(12) NOT NULL default ''");
break;
}
return $ret;
}