function globallink_get_configured_fields_for_bean in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.6 globallink_beans/globallink_beans.inc \globallink_get_configured_fields_for_bean()
 
1 call to globallink_get_configured_fields_for_bean()
- globallink_beans_get_xml in globallink_beans/
globallink_beans.inc  - Gets XML data from specific bean.
 
File
- globallink_beans/
globallink_beans.inc, line 373  
Code
function globallink_get_configured_fields_for_bean($bean_type) {
  $result = db_select('globallink_field_config', 'gfc')
    ->fields('gfc')
    ->condition('content_type', 'bean:' . $bean_type, '=')
    ->condition('entity_type', 'bean', '=')
    ->execute();
  $arr = array();
  foreach ($result as $row) {
    $arr[$row->field_name] = $row;
  }
  return $arr;
}