function globallink_block_get_sent_tpt_rows_by_bid in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.7 globallink_block/globallink_block.inc \globallink_block_get_sent_tpt_rows_by_bid()
- 7.5 globallink_block/globallink_block.inc \globallink_block_get_sent_tpt_rows_by_bid()
Gets sent block rows by ID.
Parameters
string $bid: The block ID.
Return value
array Array of block rows.
2 calls to globallink_block_get_sent_tpt_rows_by_bid()
- globallink_block_dashboard_form_validate in globallink_block/
globallink_block_send.inc - Validates block form input.
- globallink_block_send_blocks_for_translations in globallink_block/
globallink_block.inc - Sends blocks for translation.
File
- globallink_block/
globallink_block.inc, line 703
Code
function globallink_block_get_sent_tpt_rows_by_bid($bid) {
$result = db_select('globallink_core_block', 'tc')
->fields('tc')
->condition('object_id', $bid, '=')
->condition('status', 'Sent for Translations', '=')
->execute();
$rows = array();
foreach ($result as $row) {
$rows[] = $row;
}
return $rows;
}