/[drupal]/contributions/modules/currency/currency_api/API.txt
ViewVC logotype

Diff of /contributions/modules/currency/currency_api/API.txt

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

revision 1.1.8.1, Fri Jun 5 02:07:09 2009 UTC revision 1.1.8.2, Sun Aug 9 17:13:38 2009 UTC
# Line 15  function currency_api_convert($currency_ Line 15  function currency_api_convert($currency_
15   *   $from = 'CAD';   *   $from = 'CAD';
16   *   $to   = 'USD';   *   $to   = 'USD';
17   *   $amt  = 20;   *   $amt  = 20;
18   *   $ret = currency_exchange($from, $to, $amt);   *   $ret = currency_api_convert($currency_from, $currency_to, $amount);
19   *   if ($ret['status'] == FALSE)   *   if ($ret['status'] == FALSE) {
  *   {  
20   *     drupal_set_message(t('An error occured: '). $ret['message']);   *     drupal_set_message(t('An error occured: '). $ret['message']);
21   *   }   *   }
22   *   else   *   else {
  *   {  
23   *     print $amt .' '. $from .' = '. $ret['value'];   *     print $amt .' '. $from .' = '. $ret['value'];
24   *   }   *   }
25   *   *

Legend:
Removed from v.1.1.8.1  
changed lines
  Added in v.1.1.8.2

  ViewVC Help
Powered by ViewVC 1.1.2