You are here

function theme_date_form_empty in Date 5

Theme empty date form fields.

Put them into a collapsed fieldset.

1 theme call to theme_date_form_empty()
theme_date_form_fieldgroup in ./date.module
Theme entire date field form.

File

./date.module, line 675
Defines a date/time field type.

Code

function theme_date_form_empty($contents, $title) {
  if (empty($contents)) {
    return '';
  }
  $fieldset = array(
    '#title' => t('More'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#weight' => 10,
    '#value' => $contents,
  );
  $output = theme('fieldset', $fieldset);
  return $output;
}