function globallink_get_source in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.7 globallink.inc \globallink_get_source()
- 7.6 globallink.inc \globallink_get_source()
@todo Document this function.
File
- ./
globallink.inc, line 1048 - 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;
}