You are here

function theme_flickrfield in Flickr 6

Theme for the form element.

The form is already rendered by the child elements by the time it comes back here, just group each delta grouping into its own fieldset.

File

field/flickrfield.module, line 628
Defines a Flickr field type.

Code

function theme_flickrfield($element) {
  $fields = content_fields();
  $field = $fields[$element['#field_name']];
  $fieldset = array(
    '#title' => $field['widget']['label'] . ' ' . ($element['#delta'] > 0 ? intval($element['#delta'] + 1) : ''),
    '#value' => $element['#children'],
    '#collapsible' => FALSE,
    '#collapsed' => FALSE,
    '#description' => $element['#description'],
    '#attributes' => array(),
  );
  return theme('fieldset', $fieldset);
}