| 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 |
| 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 |
* |
* |
| 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: |