function get_configured_fields_for_taxonomy in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink_taxonomy/globallink_taxonomy.inc \get_configured_fields_for_taxonomy()
- 7.6 globallink_taxonomy/globallink_taxonomy.inc \get_configured_fields_for_taxonomy()
2 calls to get_configured_fields_for_taxonomy()
- globallink_get_taxonomy_xml_for_I18N_MODE_ENTITY_TRANSLATE in globallink_taxonomy/
globallink_taxonomy.inc - globallink_taxonomy_import in globallink_taxonomy/
globallink_taxonomy.inc
File
- globallink_taxonomy/
globallink_taxonomy.inc, line 778
Code
function get_configured_fields_for_taxonomy($taxonomy_type) {
$result = db_select('globallink_field_config', 'tfg')
->fields('tfg')
->condition('content_type', 'tax:' . $taxonomy_type, '=')
->condition('entity_type', 'taxonomy_term', '=')
->execute();
$arr = array();
foreach ($result as $row) {
$arr[$row->field_name] = $row;
}
return $arr;
}