function biblio_update_21 in Bibliography Module 6
Same name and namespace in other branches
- 5 biblio.install \biblio_update_21()
- 6.2 biblio.install \biblio_update_21()
File
- ./
biblio.install, line 1274 - Install file for biblio module
Code
function biblio_update_21() {
$result = array();
$result[] = update_sql("ALTER TABLE {biblio} ADD `biblio_doi` varchar(100) default NULL;");
$result[] = update_sql("ALTER TABLE {biblio} ADD `biblio_issn` varchar(24) default NULL;");
$result[] = update_sql("INSERT INTO {biblio_fields} (`fid`,`name`,`title`,`common`,`type`,`size`,`maxsize`,`hint`,`required`,`visible`,`autocomplete`,`weight`) VALUES\n (45,'biblio_issn','ISSN Number',1,'textfield',24,24,'',0,0,0,150),\n (46,'biblio_doi','DOI',1,'textfield',60,255,'',0,0,0,159);");
$result[] = update_sql("UPDATE {biblio_fields} SET title = 'ISBN Number' WHERE name = 'biblio_isbn';");
return $result;
}