You are here

function _biblio_add_vtabs in Bibliography Module 7

Same name and namespace in other branches
  1. 7.2 biblio.install \_biblio_add_vtabs()

File

./biblio.install, line 1455

Code

function _biblio_add_vtabs() {
  $vtabs = array(
    array(
      'tab_id' => 1,
      'weight' => 1,
      'title' => 'Authors',
      'description' => '',
    ),
    array(
      'tab_id' => 2,
      'weight' => 2,
      'title' => 'Publication',
      'description' => '',
    ),
    array(
      'tab_id' => 3,
      'weight' => 3,
      'title' => 'Publisher',
      'description' => '',
    ),
    array(
      'tab_id' => 4,
      'weight' => 4,
      'title' => 'Identifiers',
      'description' => '',
    ),
    array(
      'tab_id' => 5,
      'weight' => 5,
      'title' => 'Locators',
      'description' => 'URL\'s etc',
    ),
    array(
      'tab_id' => 6,
      'weight' => 6,
      'title' => 'Keywords',
      'description' => '',
    ),
    array(
      'tab_id' => 7,
      'weight' => 7,
      'title' => 'Notes',
      'description' => '',
    ),
    array(
      'tab_id' => 8,
      'weight' => 8,
      'title' => 'Alternate Titles',
      'description' => '',
    ),
    array(
      'tab_id' => 9,
      'weight' => 9,
      'title' => 'Other',
      'description' => '',
    ),
  );
  foreach ($vtabs as $record) {
    db_insert('biblio_vtabs')
      ->fields($record)
      ->execute();
  }
}