function getid3_handler_field_tags::options_form in getID3() 7
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- includes/
getid3_handler_field_tags.inc, line 20 - A special handler that renders ID3 tags attached to a file.
Class
- getid3_handler_field_tags
- Render a field as a readable value in hours, minutes, and seconds.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['relationship']['#weight'] = -2;
$form['tag'] = array(
'#type' => 'select',
'#title' => t('ID3 tag'),
'#required' => TRUE,
'#default_value' => $this->options['tag'],
'#options' => getid3_tags(),
'#description' => t('Select the tag to be rendered. If needing multiple tags, add another ID3 tags field.'),
'#weight' => -1,
);
}