function globallink_taxonomy_get_active_submission_names in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_taxonomy/globallink_taxonomy.inc \globallink_taxonomy_get_active_submission_names()
Gets active taxonomy submission names.
Return value
array Array of active taxonomy submission names.
2 calls to globallink_taxonomy_get_active_submission_names()
- globallink_taxonomy_active_form in globallink_taxonomy/
globallink_taxonomy_active_submissions.inc - Builds form to show all active taxonomy submissions.
- globallink_taxonomy_active_select_form in globallink_taxonomy/
globallink_taxonomy_active_submissions.inc - Builds form to allow selection of specific taxonomy submission by ID.
File
- globallink_taxonomy/
globallink_taxonomy.inc, line 423
Code
function globallink_taxonomy_get_active_submission_names() {
$query = db_select('globallink_core_taxonomy', 'tco');
$query
->condition('status', array(
'Sent for Translations',
'Error',
), 'IN');
$query
->distinct();
$query
->fields('tco');
$results = $query
->execute();
$arr = array(
'' => '-- Select a Submission --',
);
foreach ($results as $row) {
$arr[$row->submission_ticket] = $row->submission;
}
return $arr;
}