$default, 'required' => TRUE, 'translatable' => TRUE); return $options; } 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' => filefield_meta_tags(), '#description' => t('Select the tag to be rendered. If needing multiple tags, add another ID3 tags field.'), '#weight' => -1, ); } function render($values) { $value = unserialize($values->{$this->field_alias}); $tag = $this->options['tag']; if (isset($value[$tag])) { return check_plain($value[$tag]); } } }