You are here

function biblio_save_contributor in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio.contributors.inc \biblio_save_contributor()
  2. 6 biblio.contributors.inc \biblio_save_contributor()
  3. 7.2 includes/biblio.contributors.inc \biblio_save_contributor()

Parameters

$author:

2 calls to biblio_save_contributor()
BiblioContributorWebTestCase::testBiblioDeleteOrphanAuthors in tests/BiblioContributorWebTestCase.test
_save_contributors in includes/biblio.contributors.inc
Save contributors to the database.

File

includes/biblio.contributors.inc, line 350

Code

function biblio_save_contributor(&$author) {
  foreach ($author as $key => $value) {
    $author[$key] = trim($value);
  }
  return drupal_write_record('biblio_contributor_data', $author);
}