value_options)) { $this->value_title = t('Entity type'); $allowed_types_options = variable_get('entity_translation_entity_types'); $allowed_types = array(); $entity_info = entity_get_info(); foreach ($allowed_types_options as $key => $allowed) { if ($allowed) { $allowed_types[$key] = $entity_info[$key]['label']; } } $this->value_options = $allowed_types; } } }