You are here

function lingotek_get_enabled_entities_by_type in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.util.inc \lingotek_get_enabled_entities_by_type()
  2. 7.5 lingotek.util.inc \lingotek_get_enabled_entities_by_type()

Get all entities enabled for Lingotek, by entity type

Parameters

string $entity_type: The entity type to search for entities

Return value

array an array of arrays containing entity type and entity ID

3 calls to lingotek_get_enabled_entities_by_type()
LingotekSync::getEntitySourceCount in lib/Drupal/lingotek/LingotekSync.php
lingotek_field_language_data_cleanup_batch_create in ./lingotek.batch.inc
Field Language Data Cleanup Utility
lingotek_previously_managed_translations in ./lingotek.util.inc

File

./lingotek.util.inc, line 1960
Utility functions.

Code

function lingotek_get_enabled_entities_by_type($entity_type) {
  $profiles = lingotek_get_profiles();
  $profile_ids = array_keys($profiles);
  return lingotek_get_entities_by_profile_and_entity_type($profile_ids, $entity_type);
}