function tripal_organism_get_synced
2.x tripal_organism.DEPRECATED.inc | tripal_organism_get_synced() |
3.x tripal_organism.DEPRECATED.inc | tripal_organism_get_synced() |
1.x tripal_organism.api.inc | tripal_organism_get_synced() |
Returns a list of organisms that are currently synced with Drupal
Related topics
4 calls to tripal_organism_get_synced()
- tripal_feature_sync_features in tripal_feature/
includes/ tripal_feature.sync_features.inc - tripal_feature_sync_form in tripal_feature/
includes/ tripal_feature.sync_features.inc - tripal_stock_sync_form in tripal_stock/
includes/ tripal_stock.sync_stocks.inc - tripal_stock_sync_stocks in tripal_stock/
includes/ tripal_stock.sync_stocks.inc
File
- tripal_organism/
api/ tripal_organism.api.inc, line 50 - Provides an application programming interface (API) to manage organisms
Code
function tripal_organism_get_synced() {
// use this SQL for getting synced organisms
$dsql = "SELECT * FROM {chado_organism}";
$orgs = db_query($dsql);
// use this SQL statement for getting the organisms
$csql = "SELECT * FROM {Organism} " .
"WHERE organism_id = %d";
$org_list = array();
// iterate through the organisms and build an array of those that are synced
while ($org = db_fetch_object($orgs)) {
$info = db_fetch_object(chado_query($csql, $org->organism_id));
$org_list[] = $info;
}
return $org_list;
}