You are here

function _locale_translate_seek_query in Drupal 6

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

Build array out of search criteria specified in request variables

Related topics

2 calls to _locale_translate_seek_query()
locale_translate_seek_form in includes/locale.inc
User interface for the string search screen.
_locale_translate_seek in includes/locale.inc
Perform a string search and display results in a table

File

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

Code

function _locale_translate_seek_query() {
  static $query = NULL;
  if (!isset($query)) {
    $query = array();
    $fields = array(
      'string',
      'language',
      'translation',
      'group',
    );
    foreach ($fields as $field) {
      if (isset($_REQUEST[$field])) {
        $query[$field] = $_REQUEST[$field];
      }
    }
  }
  return $query;
}