You are here

function _locale_translate_seek_query in Drupal 7

Same name and namespace in other branches
  1. 6 includes/locale.inc \_locale_translate_seek_query()

Build array out of search criteria specified in request variables

Related topics

1 call to _locale_translate_seek_query()
_locale_translate_seek in includes/locale.inc
Perform a string search and display results in a table

File

includes/locale.inc, line 1988
Administration functions for locale.module.

Code

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