function globallink_fieldable_panels_get_sent_rows_by_fpid in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink_fieldable_panels/globallink_fieldable_panels.inc \globallink_fieldable_panels_get_sent_rows_by_fpid()
- 7.6 globallink_fieldable_panels/globallink_fieldable_panels.inc \globallink_fieldable_panels_get_sent_rows_by_fpid()
Gets sent fieldable panel rows by node ID.
Parameters
string $fpid: The fieldable panel ID.
Return value
array Array of fieldable panels rows.
1 call to globallink_fieldable_panels_get_sent_rows_by_fpid()
- globallink_fieldable_panels_pane_send_for_translations in globallink_fieldable_panels/
globallink_fieldable_panels.inc - Sends fieldable panels for translation.
File
- globallink_fieldable_panels/
globallink_fieldable_panels.inc, line 189
Code
function globallink_fieldable_panels_get_sent_rows_by_fpid($fpid) {
$result = db_select('globallink_document', 'tc')
->fields('tc')
->condition('object_id', $fpid, '=')
->condition('entity_type', GLOBALLINK_ENTITY_TYPE_FPP, '=')
->condition('target_status', array(
GLOBALLINK_STATUS_TRANSLATION_SENT,
GLOBALLINK_STATUS_TRANSLATION_ERROR,
GLOBALLINK_STATUS_TRANSLATION_COMPLETED,
), 'IN')
->execute();
$rows = array();
foreach ($result as $row) {
$rows[] = $row;
}
return $rows;
}