You are here

function get_configured_fields_for_taxonomy in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 globallink_taxonomy/globallink_taxonomy.inc \get_configured_fields_for_taxonomy()
  2. 7.5 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_get_translated in globallink_taxonomy/globallink_taxonomy.inc
Gets number of translated taxonomies.

File

globallink_taxonomy/globallink_taxonomy.inc, line 1404

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;
}