function globallink_load_source_data in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink.inc \globallink_load_source_data()
- 7.6 globallink.inc \globallink_load_source_data()
Loads source data.
Parameters
string $lid: The lid.
Return value
array Array of source data.
5 calls to globallink_load_source_data()
- globallink_check_webform_delete in globallink_webform/
globallink_webform.inc - Gets webform translation status.
- globallink_interface_check_delete in globallink_interface/
globallink_interface.inc - Gets interface translation status.
- globallink_interface_import in globallink_interface/
globallink_interface.inc - globallink_interface_send_for_translations in globallink_interface/
globallink_interface.inc - Sends interfaces for translation.
- globallink_webform_import in globallink_webform/
globallink_webform.inc
File
- ./
globallink.inc, line 1048 - Miscellaneous GlobalLink functions for node translations (non-entity).
Code
function globallink_load_source_data($lid) {
$results = db_select('locales_source', 'ls')
->fields('ls')
->condition('lid', $lid, '=')
->execute();
$rows = array();
foreach ($results as $item) {
$rows[] = $item;
}
return $rows;
}