function globallink_taxonomy_get_sent_rows_by_bid in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.7 globallink_taxonomy/globallink_taxonomy.inc \globallink_taxonomy_get_sent_rows_by_bid()
- 7.6 globallink_taxonomy/globallink_taxonomy.inc \globallink_taxonomy_get_sent_rows_by_bid()
Gets active taxonomy submission rows by object ID.
Parameters
string $bid: The taxonomy object ID.
Return value
Associative array of taxonomy active submission rows. FALSE if the array is empty.
2 calls to globallink_taxonomy_get_sent_rows_by_bid()
- globallink_taxonomy_dashboard_form_validate in globallink_taxonomy/
globallink_taxonomy_send.inc - Validates taxonomy form input.
- globallink_taxonomy_send_for_translations in globallink_taxonomy/
globallink_taxonomy.inc - Sends taxonomies for translation.
File
- globallink_taxonomy/
globallink_taxonomy.inc, line 1000
Code
function globallink_taxonomy_get_sent_rows_by_bid($bid) {
$result = db_select('globallink_core_taxonomy', 'tc')
->fields('tc')
->condition('object_id', $bid, '=')
->condition('status', 'Sent for Translations', '=')
->execute();
$rows = array();
foreach ($result as $row) {
$rows[] = $row;
}
return $rows;
}