summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Haug2011-04-26 23:16:53 -0600
committerNathan Haug2011-04-26 23:16:53 -0600
commitd74dbac6f1aa9c937c8d0adbe3b8d546e42c31bd (patch)
tree599e07756140ba48ce6d0549ff4e12d7b3ce78c1
parent73b80381c19f446a69b69ec63ffaf1b05b222c28 (diff)
Issue #1007076: Views formatter for Duration works only with Default
format.
-rw-r--r--filefield_meta/includes/filefield_meta_handler_field_duration.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/filefield_meta/includes/filefield_meta_handler_field_duration.inc b/filefield_meta/includes/filefield_meta_handler_field_duration.inc
index 91ce127..7a7f097 100644
--- a/filefield_meta/includes/filefield_meta_handler_field_duration.inc
+++ b/filefield_meta/includes/filefield_meta_handler_field_duration.inc
@@ -49,16 +49,16 @@ class filefield_meta_handler_field_duration extends views_handler_field_numeric
switch ($this->options['format']) {
case 'hours':
- $value = date('g', (int) $value);
+ $output = date('g', (int) $value);
break;
case 'minutes':
- $value = date('i', (int) $value);
+ $output = date('i', (int) $value);
break;
case 'seconds':
- $value = date('s', (int) $value);
+ $output = date('s', (int) $value);
break;
case 'total':
- $value = $value;
+ $output = check_plain($value);
break;
default:
$output = theme('filefield_meta_duration', $value);