You are here

function biblio_update_6031 in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 biblio.install \biblio_update_6031()
  2. 7.2 biblio.install \biblio_update_6031()
1 call to biblio_update_6031()
biblio_update_7003 in ./biblio.install
Adds some new publication types.

File

./biblio.install, line 1957

Code

function biblio_update_6031() {
  $result = array();
  $types[] = array(
    131,
    'Journal',
    NULL,
    3,
  );
  $types[] = array(
    132,
    'Web site',
    NULL,
    8,
  );
  $types[] = array(
    133,
    'Web service',
    'e.g. Google, Yahoo',
    8,
  );
  $types[] = array(
    134,
    'Web project page',
    NULL,
    8,
  );
  $types[] = array(
    135,
    'Presentation',
    NULL,
    8,
  );
  $types[] = array(
    136,
    'Newspaper',
    NULL,
    8,
  );
  foreach ($types as $record) {
    db_query("INSERT INTO {biblio_types} (tid, name, description, weight) VALUES ('" . implode("', '", $record) . "')");
  }
  db_query("DELETE FROM {biblio_types} WHERE tid=-1");
  return $result;
}