You are here

function globallink_get_non_translatable_config_fields in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.7 globallink.inc \globallink_get_non_translatable_config_fields()
  2. 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 737
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;
}