You are here

function globallink_load_source_data in GlobalLink Connect for Drupal 7.5

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

Loads source data.

Parameters

string $lid: The lid.

Return value

array Array of source data.

7 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_translations_for_row_id in globallink_interface/globallink_interface_receive.inc
Gets interface translations by row ID.
globallink_webform_active_form in globallink_webform/globallink_webform_active_submissions.inc
Builds form to show all active webform submissions.
globallink_webform_get_translated in globallink_webform/globallink_webform.inc
Gets number of translated webforms.
globallink_webform_get_translations_for_row_id in globallink_webform/globallink_webform_receive.inc
Gets webform translations by row ID.

... See full list

File

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