function globallink_get_non_translatable_config_fields in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink.inc \globallink_get_non_translatable_config_fields()
- 7.6 globallink.inc \globallink_get_non_translatable_config_fields()
Gets non-translatable config fields by content type.
Parameters
string $content_type: The desired content type.
Return value
array Array of non-translatable config fields.
2 calls to globallink_get_non_translatable_config_fields()
- globallink_save_translated_node_with_fields in ./globallink_node.inc 
- Saves translated node with fields.
- globallink_update_non_translatable_field in ./globallink_node.inc 
File
- ./globallink.inc, line 676 
- Miscellaneous GlobalLink functions for node translations (non-entity).
Code
function globallink_get_non_translatable_config_fields($content_type) {
  $arr = array();
  $result = db_select('globallink_field_config', 'tf')
    ->fields('tf')
    ->condition('content_type', $content_type, '=')
    ->condition('translatable', 0, '=')
    ->execute();
  foreach ($result as $row) {
    $arr[$row->field_name] = $row;
  }
  return $arr;
}