You are here

function biblio_update_6031 in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 biblio.install \biblio_update_6031()
  2. 7.2 biblio.install \biblio_update_6031()

Update ...

This update function ...

Return value

array An array of associaive arrays with 'success' and 'query' keys.

File

./biblio.install, line 2591
Install, update, and uninstall functions for the biblio module.

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) {
    $result[] = update_sql("INSERT INTO {biblio_types} (tid, name, description, weight) VALUES ('" . implode("', '", $record) . "')");
  }
  $result[] = update_sql("DELETE FROM {biblio_types} WHERE tid=-1");
  return $result;
}