function globallink_get_source in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink.inc \globallink_get_source()
- 7.6 globallink.inc \globallink_get_source()
@todo Document this function.
1 call to globallink_get_source()
- globallink_interface_send_for_translations in globallink_interface/
globallink_interface.inc - Sends interfaces for translation.
File
- ./
globallink.inc, line 1018 - Miscellaneous GlobalLink functions for node translations (non-entity).
Code
function globallink_get_source($lid) {
$result = db_query('SELECT lid, source, context, location FROM {locales_source} WHERE lid = :lid', array(
':lid' => $lid,
));
$strings = array();
foreach ($result as $child) {
$string = array(
'lid' => $child->lid,
'location' => $child->location,
'source' => $child->source,
'context' => $child->context,
);
$strings[$child->lid] = $string;
}
return $strings;
}