1.20.x locale.pages.inc _locale_translate_seek_query()

Build array out of search criteria specified in request variables

File

modules/locale/locale.pages.inc, line 149
Interface translation summary, editing and deletion user interfaces.

Code

function _locale_translate_seek_query() {
  $query = &backdrop_static(__FUNCTION__);
  if (!isset($query)) {
    $query = array();
    $fields = array('string', 'language', 'translation');
    foreach ($fields as $field) {
      if (isset($_SESSION['locale_translation_filter'][$field])) {
        $query[$field] = $_SESSION['locale_translation_filter'][$field];
      }
    }
  }
  return $query;
}