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

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

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

revision 1.3, Sun Aug 17 15:36:33 2008 UTC revision 1.4, Fri Sep 5 22:17:01 2008 UTC
# Line 1  Line 1 
1  <?php // $Id: votesmart.inc,v 1.2 2008/08/10 01:42:51 vauxia Exp $  <?php // $Id: votesmart.inc,v 1.3 2008/08/17 15:36:33 vauxia Exp $
2    
3  function votesmart_settings() {  function votesmart_settings() {
4    $form = array();    $form = array();
# Line 377  function _votesmart_tables($filter = arr Line 377  function _votesmart_tables($filter = arr
377          'callback' => '_votesmart_split_newline',          'callback' => '_votesmart_split_newline',
378        ),        ),
379        'special_message' => array(        'special_message' => array(
380          'type' => 'varchar',          'type' => 'text',
         'size' => 255,  
381          'description' => t('Special message'),          'description' => t('Special message'),
382          'votesmart' => 'specialMsg',          'votesmart' => 'specialMsg',
383        ),        ),
384    
385          // These fields are not defined in the candidate record but in other
386          // queries, such as elections, etc.  Perhaps we move them, or otherwise
387          // Indicate the relationship.  For now, you're expected to populate them
388          // manually ( without tokens ), and/or through an import script.
389          'election_year' => array(
390            'type' => 'int',
391            'description' => t('Election Year'),
392            'callback' => '_votesmart_split_newline',
393          ),
394          'state' => array(
395            'type' => 'char',
396            'size' => 2,
397            'description' => t('State'),
398            'geo_type' => 'polygon',
399            'callback' => '_votesmart_split_newline',
400          ),
401          'party' => array(
402            'type' => 'int',
403            'description' => t('Party'),
404            'callback' => '_votesmart_split_newline',
405          ),
406          'congressional_district' => array(
407            'type' => 'int',
408            'geo_type' => 'polygon',
409            'description' => t('Congressional district'),
410          ),
411          'upper_district' => array(
412            'type' => 'varchar',
413            'size' => '5',
414            'geo_type' => 'polygon',
415            'description' => t('State senate district'),
416          ),
417          'lower_district' => array(
418            'type' => 'varchar',
419            'size' => '5',
420            'geo_type' => 'polygon',
421            'description' => t('State house district'),
422          ),
423      ),      ),
424    );    );
425    $tables['committee'] = array(    $tables['committee'] = array(

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

  ViewVC Help
Powered by ViewVC 1.1.2