/[drupal]/contributions/modules/legislature/legislature.module
ViewVC logotype

Diff of /contributions/modules/legislature/legislature.module

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

revision 1.42, Mon Jun 16 19:24:48 2008 UTC revision 1.43, Tue Jun 17 01:11:51 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: legislature.module,v 1.41 2008/05/21 22:46:55 drumm Exp $  // $Id: legislature.module,v 1.42 2008/06/16 19:24:48 drumm Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 725  function legislature_get_politician_id($ Line 725  function legislature_get_politician_id($
725   * @param $session_id   * @param $session_id
726   *   The session_id for the committee.   *   The session_id for the committee.
727   * @param $name   * @param $name
728   *   The committee's name.   *   The committee's display name.
729   * @param $url   * @param $url
730   *   The committee's URL, or an empty string.   *   The committee's URL, or an empty string.
731   *   *
# Line 747  function legislature_committee($office_i Line 747  function legislature_committee($office_i
747  }  }
748    
749  /**  /**
750     * Import a committee name.
751     *
752     * @param $committee_id
753     *   The committee_id of the committee.
754     * @param $session_id
755     *   The session_id for the committee name.
756     * @param $name
757     *   The committee's name.
758     */
759    function legislature_committee_name($committee_id, $session_id, $name) {
760      db_query('DELETE FROM {legislature_committee_name} WHERE committee_id = %d AND session_id = %d', $committee_id, $session_id);
761      db_query("INSERT INTO {legislature_committee_name} (committee_id, session_id, name) VALUES (%d, %d, '%s')", $committee_id, $session_id, $name);
762    }
763    
764    /**
765   * Import an amendment.   * Import an amendment.
766   *   *
767   * Amendment associative arrays must have the following keys:   * Amendment associative arrays must have the following keys:

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.2