function biblio_fields_field_instance_settings_form in Bibliography Module 7.2
Implements hook_field_instance_settings_form().
Pseudo-hook.
File
- modules/
biblio_fields/ biblio_fields.module, line 46
Code
function biblio_fields_field_instance_settings_form($field, $instance) {
if ($field['type'] == 'biblio_text') {
$form['vtab'] = array(
'#type' => 'select',
'#title' => t('Add/Edit form Vertical Tab'),
'#options' => array(
t('None'),
t('Authors'),
t('Abstract'),
t('Full Text'),
t('Publication'),
t('Publisher'),
t('Identifiers'),
t('Locators'),
t('Keywords'),
t('Notes'),
t('Alternate Titles'),
t('Other'),
),
'#default_value' => isset($instance['settings']['vtab']) ? $instance['settings']['vtab'] : t('None'),
'#required' => TRUE,
'#description' => t('The vertical tab location of the field in the Biblio add/edit form. Select "None" to leave the field out of the vertical tabs.'),
);
return $form;
}
}