_locale_translate_seek_query

Versions
6 – 7
_locale_translate_seek_query()

Build array out of search criteria specified in request variables

Related topics

▾ 2 functions call _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

Code

includes/locale.inc, line 2072

<?php
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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.