function globallink_beans_get_active_submission_names in GlobalLink Connect for Drupal 7.6
Gets active beans submission names.
Return value
array Array of active beans submission names.
2 calls to globallink_beans_get_active_submission_names()
- globallink_beans_active_form in globallink_beans/
globallink_beans_active_submissions.inc - Builds form to show all active beans submissions.
- globallink_beans_active_select_form in globallink_beans/
globallink_beans_active_submissions.inc - Builds form to allow selection of specific beans submission by ID.
File
- globallink_beans/
globallink_beans.inc, line 672
Code
function globallink_beans_get_active_submission_names() {
$query = db_select('globallink_core_beans', 'gcb');
$query
->condition('status', array(
'Sent for Translations',
'Error',
), 'IN');
$query
->distinct();
$query
->fields('gcb');
$results = $query
->execute();
$arr = array(
'' => '-- Select a Submission --',
);
foreach ($results as $row) {
$arr[$row->submission_ticket] = $row->submission;
}
return $arr;
}