/[drupal]/contributions/modules/family/common.inc
ViewVC logotype

Diff of /contributions/modules/family/common.inc

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

revision 1.2.4.5.4.1, Fri Jul 18 03:04:50 2008 UTC revision 1.2.4.5.4.2, Wed Oct 1 02:11:37 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: common.inc,v 1.2.4.5 2007/11/26 04:30:37 pyutaros Exp $  // $Id: common.inc,v 1.2.4.5.4.1 2008/07/18 03:04:50 pyutaros Exp $
3  /**  /**
4   * Insert new fact   * Insert new fact
5   *   *
# Line 257  function family_get_address($address_fac Line 257  function family_get_address($address_fac
257    
258    return $content . "</div>";    return $content . "</div>";
259  }  }
260    
261    function family_changeDateFormat($oldFormat){
262    $dateData = explode(" ", $oldFormat);
263    $day = $dateData[0];
264    $year = $dateData[2];
265    switch($dateData[1]){
266      case "JAN":
267         $month = "01";
268         break;
269      case "FEB":
270         $month = "02";
271         break;
272      case "MAR":
273         $month="03";
274         break;
275      case "APR":
276         $month="04";
277         break;
278      case "MAY":
279         $month="05";
280         break;
281      case "JUN":
282         $month="06";
283         break;
284      case "JUL":
285         $month="07";
286         break;
287      case "AUG":
288         $month="08";
289         break;
290      case "SEP":
291         $month="09";
292         break;
293      case "OCT":
294         $month="10";
295         break;
296      case "NOV":
297         $month="11";
298         break;
299      case "DEC":
300         $month="12";
301         break;
302    }
303    $newDate="$year-$month-$day";
304    return $newDate;
305    }

Legend:
Removed from v.1.2.4.5.4.1  
changed lines
  Added in v.1.2.4.5.4.2

  ViewVC Help
Powered by ViewVC 1.1.2