public function biblio_handler_citation::options_form in Bibliography Module 7
Same name and namespace in other branches
- 6.2 views/biblio_handler_citation.inc \biblio_handler_citation::options_form()
- 6 views/biblio_handler_citation.inc \biblio_handler_citation::options_form()
- 7.2 views/biblio_handler_citation.inc \biblio_handler_citation::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- views/
biblio_handler_citation.inc, line 39
Class
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['style_name'] = array(
'#type' => 'select',
'#title' => t('Style'),
'#default_value' => $this->options['style_name'],
'#options' => biblio_get_styles(),
'#description' => t('Define the layout of citation.'),
);
$form['export_links'] = array(
'#type' => 'checkbox',
'#title' => t('Show export links'),
'#default_value' => $this->options['export_links'],
'#description' => t('This will add a set of links to export the entry in various file formats such as Bibtex or RIS.'),
);
$form['file_attachments'] = array(
'#type' => 'checkbox',
'#title' => t('Show download links for file attachments'),
'#default_value' => $this->options['file_attachments'],
'#description' => t('If there are files attached to the entry, this will add a download link for each file attached.'),
);
$form['open_url_link'] = array(
'#type' => 'checkbox',
'#title' => t('Show OpenURL links'),
'#default_value' => $this->options['open_url_link'],
'#description' => t('This will add an !openurl link to the entry, assuming you have competed the OpenURL configuration on the Biblio !settings page.', array(
'!openurl' => l('OpenURL', "http://en.wikipedia.org/wiki/OpenURL"),
'!settings' => l('settings', 'admin/config/content/biblio'),
)),
);
}