You are here

function _tmgmt_filter_data in Translation Management Tool 7

Array filter callback for filtering untranslatable source data elements.

6 calls to _tmgmt_filter_data()
TMGMTJobItem::count in entity/tmgmt.entity.job_item.inc
Parse all data items recursively and sums up the counters for accepted, translated and pending items.
TMGMTLocalTaskItemController::count in translators/tmgmt_local/controller/tmgmt_local.controller.task_item.inc
Parse all data items recursively and sums up the counters for accepted, translated and pending items.
tmgmt_local_translation_form_element in translators/tmgmt_local/includes/tmgmt_local.pages.inc
Builds a translation form element.
_tmgmt_data_count_7003 in ./tmgmt.install
Data parsing helper function for tmgmt_update_7003().
_tmgmt_data_count_7006 in ./tmgmt.install
Data parsing helper function for tmgmt_update_7006().

... See full list

9 string references to '_tmgmt_filter_data'
TMGMTFileFormatHTML::export in translators/file/tmgmt_file.format.html.inc
Return the file content for the job data.
TMGMTFileformatXLIFF::addItem in translators/file/tmgmt_file.format.xliff.inc
Adds a job item to the xml export.
TMGMTI18nStringSourcePluginController::saveTranslation in sources/i18n_string/tmgmt_i18n_string.plugin.inc
Saves a translation.
TMGMTJobItem::addTranslatedData in entity/tmgmt.entity.job_item.inc
Adds translated data to a job item.
TMGMTJobItem::recalculateStatistics in entity/tmgmt.entity.job_item.inc
Recalculate statistical word-data: pending, translated, reviewed, accepted.

... See full list

File

./tmgmt.module, line 1427
Main module file for the Translation Management module.

Code

function _tmgmt_filter_data($value) {
  return !(empty($value['#text']) || isset($value['#translate']) && $value['#translate'] === FALSE);
}