function lingotek_row_status_query in Lingotek Translation 7.7
File
- ./
lingotek.config.inc, line 43 - Config grid form elements
Code
function lingotek_row_status_query() {
$query1 = lingotek_config_start_query(null, 'not taxonomy');
lingotek_config_add_query_filters($query1);
$query2 = lingotek_config_start_query(null, 'taxonomy name');
lingotek_config_add_query_filters($query2);
$query3 = lingotek_config_start_query(null, 'taxonomy desc');
lingotek_config_add_query_filters($query3);
$query1
->union($query2, 'UNION');
$query1
->union($query3, 'UNION');
$query = db_select($query1, 'query_union')
->fields('query_union');
$limit = isset($_SESSION['limit_select']) ? $_SESSION['limit_select'] : 10;
$table_data_raw = $query
->extend('PagerDefault')
->extend('TableSort')
->limit($limit)
->execute()
->fetchAllAssoc('lid');
return lingotek_bulk_grid_parse_config_data($table_data_raw, NULL, TRUE);
}