Issue #1007076: Views formatter for Duration works only with Default
authorNathan Haug
Wed, 27 Apr 2011 05:16:53 +0000 (23:16 -0600)
committerNathan Haug
Wed, 27 Apr 2011 05:16:53 +0000 (23:16 -0600)
format.

filefield_meta/includes/filefield_meta_handler_field_duration.inc

index 91ce127..7a7f097 100644 (file)
@@ -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);