--- office_hours.module
+++ office_hours.module
@@ -339,15 +339,13 @@ function office_hours_field_process($element, $edit, $form_state, $form) {
$optionday= array(0 => t('Sunday'), 1 => t('Monday'), 2 => t('Tuesday'),3 => t('Wednesday'), 4 => t('Thursday'), 5 => t('Friday'), 6 => t('Saturday'), 7=> t('None'));
if ( $field['multiple'] == '7' || ($field['multiple'] == '14' && !($iteration & 1 )) ) {
- $element['day_markup'] = array(
- '#value' => '
'.t($optionday[$day]),
- );
+ $element['#prefix'] = '
' . t($optionday[$day]);
}
else {
- $element['day_markup'] = array(
- '#value' => '
'.t('Additional hours:'),
- );
+ $element['#prefix'] = '
' . t('Additional hours:');
}
+ $element['#suffix'] = '
';
+
$element[$field_day] = array(
'#type' => 'value',
'#value' => $day,
@@ -669,4 +667,4 @@ $i=0;
$data['field_hours_endhours']['help'] .= t("- Closing hours");
// TODO: provide automatic filters, sorts, and arguments for each column, not just the first?
return array($table_alias => $data);
-}
\ No newline at end of file
+}
--
1.6.2.1