function biblio_ui_attach_biblio_fields in Bibliography Module 7.3
Attach biblio fields to biblio types.
1 string reference to 'biblio_ui_attach_biblio_fields'
- biblio_ui_menu in modules/
biblio_ui/ biblio_ui.module - Implements hook_menu().
File
- modules/
biblio_ui/ biblio_ui.module, line 795 - Main functionality file for the biblio UI module.
Code
function biblio_ui_attach_biblio_fields() {
$form = array();
$types = biblio_types();
$options = array();
foreach ($types as $type => $info) {
$options[$type] = $info->name;
}
$form['biblio_types'] = array(
'#type' => 'select',
'#title' => t('Biblio types'),
'#description' => t('Select the biblio types you would like to attach the biblio fields.'),
'#multiple' => TRUE,
'#options' => $options,
'#size' => 10,
);
$form['actions'] = array(
'#type' => 'actions',
'submit' => array(
'#type' => 'submit',
'#value' => t('Attach fields to selected types'),
),
);
return $form;
}