You are here

function globallink_bean_get_info in GlobalLink Connect for Drupal 7.7

1 call to globallink_bean_get_info()
globallink_beans_send_for_translations in globallink_beans/globallink_beans.inc
Sends beans for translation.

File

globallink_beans/globallink_beans.inc, line 882

Code

function globallink_bean_get_info($bid) {
  $query = db_select('bean', 'bn')
    ->fields('bn', array(
    'title',
  ))
    ->distinct()
    ->condition('bid', $bid, '=');
  $results = $query
    ->execute();
  $arr = new stdClass();
  foreach ($results as $result) {
    $arr = $result;
  }
  return $arr;
}