You are here

function _biblio_add_bibliographic_types in Bibliography Module 6.2

Populates {biblio_types} table with initial bibliographvic type data.

Return value

array An array of arrays with data summarizing attempts to insert records into {biblio_types} table where each array has the following key/value pairs:

  • success: A boolean indicating whether the query succeeded.
  • query: The SQL query(s) executed, passed through check_plain().
1 call to _biblio_add_bibliographic_types()
biblio_install in ./biblio.install
Implements hook_install().

File

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

Code

function _biblio_add_bibliographic_types() {
  $result = array();
  $types = _biblio_data_bibliographic_types();
  foreach ($types as $record) {
    $result[] = update_sql("INSERT INTO {biblio_types} (tid, name, description, weight) VALUES ('" . implode("', '", $record) . "')");
  }
  return $result;
}