You are here

function lingotek_grid_process_elements in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lingotek.bulk_grid.inc \lingotek_grid_process_elements()
  2. 7.5 lingotek.bulk_grid.inc \lingotek_grid_process_elements()
  3. 7.6 lingotek.bulk_grid.inc \lingotek_grid_process_elements()

Add $prefix and $suffix to each $element name

2 calls to lingotek_grid_process_elements()
lingotek_grid_build_column_checkboxes in ./lingotek.bulk_grid.inc
Builds the checkbox elements for customizing The Grid's columns Uses predefined defaults specified in 'lingotek_grid_define_columns'
lingotek_grid_build_filters in ./lingotek.bulk_grid.inc
Builds the form elements for the filters.

File

./lingotek.bulk_grid.inc, line 985
Bulk Grid form

Code

function lingotek_grid_process_elements($elements, $prefix, $suffix) {
  $new_keys = array();
  foreach ($elements as $element => $innards) {
    $new_keys[$prefix . $element . $suffix] = $innards;
  }
  return $new_keys;
}