/[drupal]/contributions/modules/carbon/carbon_transfer.inc
ViewVC logotype

Diff of /contributions/modules/carbon/carbon_transfer.inc

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

revision 1.4 by johnackers, Tue Jan 6 22:19:26 2009 UTC revision 1.5 by johnackers, Sat Jan 10 15:46:14 2009 UTC
# Line 42  function carbon_transfer_page($account_i Line 42  function carbon_transfer_page($account_i
42    
43    $header = empty($account_id) ? $headerAllAccounts : $headerOneAccount ;    $header = empty($account_id) ? $headerAllAccounts : $headerOneAccount ;
44    
45    $account_map = new AccountMap() ; $account_map->init();    $account_map = new CarbonAccountMap() ; $account_map->init();
46    
47    // the nid's below correspond to carbon accounts    // the nid's below correspond to carbon accounts
48    
# Line 209  function carbon_transfer_array_load($nid Line 209  function carbon_transfer_array_load($nid
209  function carbon_transfer_form(&$node, &$param) {  function carbon_transfer_form(&$node, &$param) {
210          global $user ;          global $user ;
211    
212    $account_map = new AccountMap();  $account_map->init();    $account_map = new CarbonAccountMap();  $account_map->init();
213    $form = array();    $form = array();
214    
215      $form["title"] = array(      $form["title"] = array(
# Line 327  function carbon_transfer_load(&$node) { Line 327  function carbon_transfer_load(&$node) {
327    
328  function carbon_transfer_submit(&$node)  function carbon_transfer_submit(&$node)
329  {  {
330    $account_map = new AccountMap();  $account_map->init();    $account_map = new CarbonAccountMap();  $account_map->init();
331    
332    $node->seller = $account_map->getNid($node->seller_index);    $node->seller = $account_map->getNid($node->seller_index);
333    $node->buyer = $account_map->getNid($node->buyer_index);    $node->buyer = $account_map->getNid($node->buyer_index);
# Line 402  function theme_carbon_transfer_table_vie Line 402  function theme_carbon_transfer_table_vie
402          // content variable that will be returned for display          // content variable that will be returned for display
403    $header = array("valuedate", "description", "seller", "buyer", "carbon", "cost", "published");    $header = array("valuedate", "description", "seller", "buyer", "carbon", "cost", "published");
404    
405    $account_map = new AccountMap() ; $account_map->init();    $account_map = new CarbonAccountMap() ; $account_map->init();
406    
407    $rows = array();    $rows = array();
408    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.3