/[drupal]/contributions/modules/votesmart/modules/votesmart_factory/votesmart_factory.inc
ViewVC logotype

Diff of /contributions/modules/votesmart/modules/votesmart_factory/votesmart_factory.inc

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

revision 1.4, Fri Sep 5 22:17:01 2008 UTC revision 1.5, Tue Sep 9 01:11:46 2008 UTC
# Line 1  Line 1 
1  <?php // $Id: votesmart_factory.inc,v 1.3 2008/08/17 15:36:33 vauxia Exp $  <?php // $Id: votesmart_factory.inc,v 1.4 2008/09/05 22:17:01 vauxia Exp $
2    
3  function votesmart_factory() {  function votesmart_factory() {
4    require_once(drupal_get_path('module', 'votesmart') .'/votesmart.inc');    require_once(drupal_get_path('module', 'votesmart') .'/votesmart.inc');
# Line 101  function votesmart_factory_submit($form, Line 101  function votesmart_factory_submit($form,
101    
102              $values = array(              $values = array(
103                'type' => 'candidate',                'type' => 'candidate',
               'field_candidate_id' => $c['candidateId'],  
104                'title' => $c['firstName'] .' '. $c['lastName'],                'title' => $c['firstName'] .' '. $c['lastName'],
105                'op' => t('Save'),                'op' => t('Save'),
106                'name' => 'admin',                'name' => 'admin',
107              );              );
108    
109                $values['field_candidate_id'][] = array('id' => $c['candidateId'], 'table' => 'candidate');
110              $values['field_election_year'][] = array('value' => $election['electionYear']);              $values['field_election_year'][] = array('value' => $election['electionYear']);
111              $values['field_party'][] = array('value' => $c['electionParties']);              $values['field_party'][] = array('value' => $c['electionParties']);
112              if ($state != 'NA') {              if ($state != 'NA') {

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

  ViewVC Help
Powered by ViewVC 1.1.2