You are here

function globallink_load_source_data in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 globallink.inc \globallink_load_source_data()
  2. 7.5 globallink.inc \globallink_load_source_data()

Loads source data.

Parameters

string $lid: The lid.

Return value

array Array of source data.

10 calls to globallink_load_source_data()
globallink_interface_active_form in globallink_interface/globallink_interface_active_submissions.inc
Builds form to show all active interface submissions.
globallink_interface_get_translated in globallink_interface/globallink_interface.inc
Gets number of translated interfaces.
globallink_interface_get_translations_for_row_id in globallink_interface/globallink_interface_receive.inc
Gets interface translations by row ID.
globallink_interface_get_translation_status in globallink_interface/globallink_interface.inc
Gets interface translation status.
globallink_interface_update_ticket_id in globallink_interface/globallink_interface.inc
Updates interface ticket ID.

... See full list

File

./globallink.inc, line 1104
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;
}