function lingotek_grid_process_elements in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.4 lingotek.bulk_grid.inc \lingotek_grid_process_elements()
- 7.5 lingotek.bulk_grid.inc \lingotek_grid_process_elements()
- 7.6 lingotek.bulk_grid.inc \lingotek_grid_process_elements()
Add $prefix and $suffix to each $element name
4 calls to lingotek_grid_process_elements()
- lingotek_config_build_column_checkboxes in ./
lingotek.bulk_grid.inc - lingotek_config_build_filters in ./
lingotek.bulk_grid.inc - 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 1751
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;
}