function lingotek_bulk_grid_filter_query in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.6 lingotek.bulk_grid.inc \lingotek_bulk_grid_filter_query()
1 call to lingotek_bulk_grid_filter_query()
- lingotek_grid_get_rows in ./
lingotek.bulk_grid.inc - Dynamic query processing function for the grid Since the header defines which columns are shown, this query gets all possible values and refines the header using the columns selected in the UI The filters are also processed here
File
- ./
lingotek.bulk_grid.inc, line 2037
Code
function lingotek_bulk_grid_filter_query($query, $entity_type, $eid, $label_col, $info) {
if (!isset($_SESSION['grid_filters'][$entity_type])) {
return;
}
$filters = $_SESSION['grid_filters'][$entity_type];
lingotek_bulk_grid_filter_search_box($query, $filters, $eid, $label_col, $entity_type);
lingotek_bulk_grid_filter_popup_options($query, $filters, $eid, $info, $entity_type);
lingotek_bulk_grid_filter_last_uploaded($query, $filters);
lingotek_bulk_grid_filter_last_downloaded($query, $filters);
}