/[drupal]/contributions/modules/webform2pdf/webform2pdf.module
ViewVC logotype

Diff of /contributions/modules/webform2pdf/webform2pdf.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.5, Mon Oct 19 12:59:11 2009 UTC revision 1.1.2.6, Wed Nov 4 15:14:48 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: webform2pdf.module,v 1.1.2.4 2009/09/23 14:26:38 york Exp $  // $Id: webform2pdf.module,v 1.1.2.5 2009/10/19 12:59:11 york Exp $
3    
4  /**  /**
5   * Ha be van kapcsolva a PFD generalas akkor jelenik meg a menupont.   * Ha be van kapcsolva a PFD generalas akkor jelenik meg a menupont.
# Line 1164  function _webform2pdf_list_template_vars Line 1164  function _webform2pdf_list_template_vars
1164        break;        break;
1165    
1166        case 'email':        case 'email':
1167          case 'date':
1168          case 'time':
1169        case 'hidden':        case 'hidden':
1170        case 'textarea':        case 'textarea':
1171        case 'textfield':        case 'textfield':
# Line 1203  function _webform2pdf_get_template_vars( Line 1205  function _webform2pdf_get_template_vars(
1205      if ( !empty($submission->data[$component['cid']]['value'] ) ) {      if ( !empty($submission->data[$component['cid']]['value'] ) ) {
1206        switch ($component['type']) {        switch ($component['type']) {
1207          case 'date':          case 'date':
1208            $timestamp = strtotime($submission->data[$component['cid']]['value'][2] .'-'. $submission->data[$component['cid']]['value'][0] .'-'. $submission->data[$component['cid']]['value'][1]);            $timestamp = strtotime($submission->data[$component['cid']]['value'][0] .'/'. $submission->data[$component['cid']]['value'][1] .'/'. $submission->data[$component['cid']]['value'][2].' GMT');
1209            $format = variable_get('date_format_short', 'm/d/Y - H:i');            $format = webform_date_format('medium');
1210            $format = str_replace(array('D', 'l', 'S', 'w', 'z', 'W', 'a', 'A', 'B', 'g', 'h', 'H', 'i', 's', 'I', 'O', 'T', 'Z', ':'), '', $format);            $date = format_date($timestamp, 'custom', $format, 0);
1211            $format = trim($format, ' /-');  
           $date = format_date($timestamp, 'custom', $format);  
1212            $tokens['%'. $component['form_key']] = $date;            $tokens['%'. $component['form_key']] = $date;
1213          break;          break;
1214    

Legend:
Removed from v.1.1.2.5  
changed lines
  Added in v.1.1.2.6

  ViewVC Help
Powered by ViewVC 1.1.2