function _biblio_get_user_doi_form in Bibliography Module 7
Same name and namespace in other branches
- 6.2 includes/biblio.admin.inc \_biblio_get_user_doi_form()
- 6 biblio.admin.inc \_biblio_get_user_doi_form()
- 7.2 includes/biblio.admin.inc \_biblio_get_user_doi_form()
Parameters
$user:
Return value
multitype:string number NULL
1 call to _biblio_get_user_doi_form()
- biblio_form_user_profile_form_alter in ./
biblio.module - Implements hook_user().
File
- includes/
biblio.admin.inc, line 1883 - biblio.admin.inc
Code
function _biblio_get_user_doi_form($user) {
$form['biblio_doi'] = array(
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#title' => t('CrossRef Login Information'),
);
$link_attrs = array(
'attributes' => array(
'target' => '_blank',
),
'absolue' => TRUE,
);
$form['biblio_doi']['biblio_crossref_pid'] = array(
'#type' => 'textfield',
'#title' => t('CrossRef OpenURL Account ID'),
'#default_value' => isset($user->data['biblio_crossref_pid']) ? $user->data['biblio_crossref_pid'] : '',
'#return_value' => 1,
'#description' => t('Enter your complimentary CrossRef OpenURL account ID which you can obtain here !url, OR enter your full CrossRef (colon separated) account:password combination.', array(
'!url' => l(t('OpenURL Account Request Form'), 'http://www.crossref.org/requestaccount/', $link_attrs),
)),
);
return $form;
}