function biblio_contributor_create in Bibliography Module 7.3
Same name and namespace in other branches
- 7.2 biblio.module \biblio_contributor_create()
Create a contributor entity object.
Parameters
string $name: The name of the contributor. If given, this function will parse out the author name and automatically fill in any associated fields (first name, last name, initials, etc.) and the type
array $values:
Return value
BiblioContributor The contributor entity object.
2 calls to biblio_contributor_create()
- BiblioContributorUtility::getBiblioContributorsFromNames in includes/
BiblioContributorUtility.inc - Get saved contributor objects by their names.
- biblio_ui_contributor_create_form in modules/
biblio_ui/ biblio_ui.module - Manage biblio contributor UI.
File
- ./
biblio.module, line 707 - Maintains bibliographic lists.
Code
function biblio_contributor_create($values = array()) {
global $language;
$values['type'] = 'biblio_contributor';
$values += array(
'language' => $language->language,
'created' => REQUEST_TIME,
'changed' => REQUEST_TIME,
'prefix' => '',
'lastname' => '',
'initials' => '',
'suffix' => '',
'firstname' => '',
);
return entity_create('biblio_contributor', $values);
}